Skip to content

Latest commit

 

History

History
99 lines (66 loc) · 8.34 KB

FakeCommandProcessor.ProcessAsync.md

File metadata and controls

99 lines (66 loc) · 8.34 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.ProcessAsync Method

Overloads
ProcessAsync(ICatCommand, CancellationToken) Runs a command.
ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken) Runs a command that returns a result.

FakeCommandProcessor.ProcessAsync(ICatCommand, CancellationToken) Method

Runs a command.

public System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse> ProcessAsync(Cat.Commands.Abstractions.ICatCommand catCommand, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

catCommand ICatCommand

The command to run.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Implements ProcessAsync(ICatCommand, CancellationToken)

Returns

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

FakeCommandProcessor.ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken) Method

Runs a command that returns a result.

public System.Threading.Tasks.Task<Cat.Responses.Abstractions.ICatResponse<TResult>> ProcessAsync<TResult>(Cat.Commands.Abstractions.ICatCommand<TResult> catCommand, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Type parameters

TResult

The type of the data the command returns.

Parameters

catCommand Cat.Commands.Abstractions.ICatCommand<TResult>

The command to run.

cancellationToken System.Threading.CancellationToken

Token to cancel the work.

Implements ProcessAsync<TResult>(ICatCommand<TResult>, CancellationToken)

Returns

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