| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.COMMANDS | |
|||||
Code Reference
» Cat.Commands.Abstractions Assembly » Cat.Commands.Abstractions Namespace » ICatCommandHandler<TCommand> Interface
ICatCommandHandler<TCommand>.HandleAsync(TCommand, CancellationToken) Method
Runs the command.
System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse> HandleAsync(TCommand command, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
command TCommand
The command to handle.
cancellationToken System.Threading.CancellationToken
Token to cancel the work.
Returns
System.Threading.Tasks.Task<ICatResponse>
A response that tells whether the command succeeded, and why not if it failed.