Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 7.95 KB

FakeCommandProcessor.Process.md

File metadata and controls

89 lines (62 loc) · 7.95 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

FakeCommandProcessor.Process Method

Overloads
Process(ICatCommand) Runs a command and blocks until it finishes. Prefer ProcessAsync(ICatCommand, CancellationToken) when you can.
Process<TResult>(ICatCommand<TResult>) Runs a command that returns a result and blocks until it finishes. Prefer ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken) when you can.

FakeCommandProcessor.Process(ICatCommand) Method

Runs a command and blocks until it finishes. Prefer ProcessAsync(ICatCommand, CancellationToken) when you can.

public Cat.Responses.Abstractions.ICatResponse Process(Cat.Commands.Abstractions.ICatCommand catCommand);

Parameters

catCommand ICatCommand

The command to run.

Implements Process(ICatCommand)

Returns

ICatResponse
The response of the handler.

FakeCommandProcessor.Process<TResult>(ICatCommand<TResult>) Method

Runs a command that returns a result and blocks until it finishes. Prefer ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken) when you can.

public Cat.Responses.Abstractions.ICatResponse<TResult> Process<TResult>(Cat.Commands.Abstractions.ICatCommand<TResult> catCommand);

Type parameters

TResult

The type of the data the command returns.

Parameters

catCommand Cat.Commands.Abstractions.ICatCommand<TResult>

The command to run.

Implements Process<TResult>(ICatCommand<TResult>)

Returns

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