Interface ICancellableCommandHandler<TCommand>
Can be implemented to provide basic command handling capabilites where no result is required and cancellation token support is required
Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface ICancellableCommandHandler<in TCommand> : ICancellableCommandHandler, ICommandHandler, ICommandHandlerBase where TCommand : ICommand
Type Parameters
Name | Description |
---|---|
TCommand | The type of the command |
Methods
| Improve this Doc View SourceExecuteAsync(TCommand, CancellationToken)
Executes the command
Declaration
Task ExecuteAsync(TCommand command, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
TCommand | command | The command |
CancellationToken | cancellationToken | A cancellation tokan |
Returns
Type | Description |
---|---|
Task | An awaitable task |