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 » ICatServiceRequestProcessor Interface

ICatServiceRequestProcessor.ProcessAsync Method

Overloads  
ProcessAsync(ICatServiceRequest, CancellationToken) Runs a service request that returns no payload.
ProcessAsync<TResponse>(ICatServiceRequest<TResponse>, CancellationToken) Runs a service request that returns a payload.

ICatServiceRequestProcessor.ProcessAsync(ICatServiceRequest, CancellationToken) Method

Runs a service request that returns no payload.

System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse> ProcessAsync(Cat.ServiceRequests.Abstractions.ICatServiceRequest catServiceRequest, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

catServiceRequest ICatServiceRequest

The request to run.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Returns

System.Threading.Tasks.Task<ICatResponse>
The response of the handler.

ICatServiceRequestProcessor.ProcessAsync<TResponse>(ICatServiceRequest<TResponse>, CancellationToken) Method

Runs a service request that returns a payload.

System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResponse>> ProcessAsync<TResponse>(Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse> catServiceRequest, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Type parameters

TResponse

The type of the payload.

Parameters

catServiceRequest Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse>

The request to run.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Returns

System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResponse>>
The response of the handler, with the payload when it succeeded.