| 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.QUERIES | |
|||||
Code Reference
» Cat.Queries.Abstractions Assembly » Cat.Queries.Abstractions Namespace » ICatQueryHandler<TQuery,TQueryResult> Interface
ICatQueryHandler<TQuery,TQueryResult>.HandleAsync(TQuery, CancellationToken) Method
Runs the query.
System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TQueryResult>> HandleAsync(TQuery query, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
query TQuery
The query to handle.
cancellationToken System.Threading.CancellationToken
Token to cancel the work.
Returns
System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TQueryResult>>
A response with the data when it succeeded, or the errors when it failed.