Interface ICommandHandler<TCommandDefinition>
Represents an interface for a command handler.
public interface ICommandHandler<TCommandDefinition> : ICommandHandler where TCommandDefinition : CommandDefinition
Type Parameters
TCommandDefinitionType of the command definition.
Methods
Run(Command)
Runs the command.
Task Run(Command command)
Parameters
commandCommandAssociated command.
Returns
- Task
A task that represents the command execution.
Update(Command)
Updates the command.
void Update(Command command)
Parameters
commandCommandCommand to update.