Skip to content

Commit 6c70e16

Browse files
authored
Update readme.md
1 parent 4d2a44c commit 6c70e16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
The request and the response can be any C# classes.
66

77
```csharp
8-
internal class PresentProductsRequest
8+
public class PresentProductsRequest
99
{
1010
}
1111

12-
internal class PresentProductsResponse
12+
public class PresentProductsResponse
1313
{
1414
}
1515
```
@@ -19,14 +19,14 @@ The use case must implement the `IUseCase` interface.
1919
```csharp
2020
internal class PresentProductsUseCase : IUseCase<PresentProductsRequest, PresentProductsResponse>
2121
{
22-
public PresentProductsResponse Execute(PresentProductsRequest request, CancellationToken cancellationToken)
22+
public Task<PresentProductsResponse> Execute(PresentProductsRequest request, CancellationToken cancellationToken)
2323
{
2424
// Return the list of products.
2525
}
2626
}
2727
```
2828

29-
Note: The response class is optional, it may be missing if the use case has nothing to return.
29+
> Note: The response class is optional, it may be missing if the use case has nothing to return.
3030
3131
## 2) Create the Request Bus and register the Use Case
3232

0 commit comments

Comments
 (0)