Interface AsyncHandles<TCommand>
Represents a asynchron command handler of a specific type of command.
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public interface AsyncHandles<in TCommand>
Type Parameters
TCommand
The type of command to handle. |
Methods
HandleAsync(TCommand, CancellationToken)
Called with the command to handle.
Declaration
Task HandleAsync(TCommand command, CancellationToken cancellationToken = default(CancellationToken))
Parameters
TCommand
command
The command to process. |
System.Threading.CancellationToken
cancellationToken
The cancellation instruction. |
Returns
System.Threading.Tasks.Task
A task representing the asynchronous operation. |