Skip to content

Latest commit

 

History

History
99 lines (66 loc) · 9.38 KB

FakeServiceRequestProcessor.ProcessAsync.md

File metadata and controls

99 lines (66 loc) · 9.38 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.UNITTESTING   |

Code Reference

FakeServiceRequestProcessor.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.

FakeServiceRequestProcessor.ProcessAsync(ICatServiceRequest, CancellationToken) Method

Runs a service request that returns no payload.

public 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.

Implements ProcessAsync(ICatServiceRequest, CancellationToken)

Returns

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

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

Runs a service request that returns a payload.

public 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.

Implements ProcessAsync<TResponse>(ICatServiceRequest<TResponse>, CancellationToken)

Returns

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