Interface ICommandHandler<TCommand>
interface to be implemented by a command handler for a given command type that does not return a result
Namespace: FastEndpoints
Assembly: FastEndpoints.Messaging.Core.dll
Syntax
public interface ICommandHandler<in TCommand> : ICommandHandler<TCommand, Void>, ICommandHandler where TCommand : ICommand
Type Parameters
| Name | Description |
|---|---|
| TCommand | the type of the command |
Methods
ExecuteAsync(TCommand, CancellationToken)
accepts a command and does not return a result.
Declaration
Task ExecuteAsync(TCommand command, CancellationToken ct)
Parameters
| Type | Name | Description |
|---|---|---|
| TCommand | command | the input command object |
| CancellationToken | ct | optional cancellation token |
Returns
| Type | Description |
|---|---|
| Task |