Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 9.28 KB

FakeServiceRequestProcessor.Process.md

File metadata and controls

89 lines (62 loc) · 9.28 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.Process Method

Overloads
Process(ICatServiceRequest) Runs a service request that returns no payload and blocks until it finishes. Prefer ProcessAsync(ICatServiceRequest, CancellationToken) when you can.
Process<TResponse>(ICatServiceRequest<TResponse>) Runs a service request that returns a payload and blocks until it finishes. Prefer ProcessAsync<TResponse>(ICatServiceRequest<TResponse>, CancellationToken) when you can.

FakeServiceRequestProcessor.Process(ICatServiceRequest) Method

Runs a service request that returns no payload and blocks until it finishes. Prefer ProcessAsync(ICatServiceRequest, CancellationToken) when you can.

public Cat.Responses.Abstractions.ICatResponse Process(Cat.ServiceRequests.Abstractions.ICatServiceRequest catServiceRequest);

Parameters

catServiceRequest ICatServiceRequest

The request to run.

Implements Process(ICatServiceRequest)

Returns

ICatResponse
The response of the handler.

FakeServiceRequestProcessor.Process<TResponse>(ICatServiceRequest<TResponse>) Method

Runs a service request that returns a payload and blocks until it finishes. Prefer ProcessAsync<TResponse>(ICatServiceRequest<TResponse>, CancellationToken) when you can.

public Cat.Responses.Abstractions.ICatResponse<TResponse> Process<TResponse>(Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse> catServiceRequest);

Type parameters

TResponse

The type of the payload.

Parameters

catServiceRequest Cat.ServiceRequests.Abstractions.ICatServiceRequest<TResponse>

The request to run.

Implements Process<TResponse>(ICatServiceRequest<TResponse>)

Returns

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