| 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.Decorators.Logging Assembly » Cat.Commands.Decorators.Logging Namespace » LoggingDecorator Class » CatCommandHandler<TCommand> Class
LoggingDecorator.CatCommandHandler<TCommand>.HandleAsync(TCommand, CancellationToken) Method
Runs the command.
public 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.
Implements HandleAsync(TCommand, CancellationToken)
Returns
System.Threading.Tasks.Task<ICatResponse>
A response that tells whether the command succeeded, and why not if it failed.