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