View on GitHub
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.SERVICEREQUESTS   |

Code Reference

» Cat.ServiceRequests.Abstractions Assembly » Cat.ServiceRequests.Abstractions Namespace » ICatServiceRequestHandler<TRequest,TResponse> Interface

ICatServiceRequestHandler<TRequest,TResponse>.HandleAsync(TRequest, CancellationToken) Method

Runs the service request.

System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResponse>> HandleAsync(TRequest serviceRequest, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

serviceRequest TRequest

The request to handle.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Returns

System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResponse>>
A response with the payload when it succeeded, or the errors when it failed.