Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 8.11 KB

ICatServiceRequestProcessor.ProcessAsync.md

File metadata and controls

95 lines (64 loc) · 8.11 KB
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   |   REPO OVERVIEW   |   DEMO   |   CAT.SERVICEREQUESTS   |

Code Reference

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.