Interface ICommandListHandler<TCommandDefinition>
Represents an interface for a command list handler.
public interface ICommandListHandler<TCommandDefinition> : ICommandHandler where TCommandDefinition : CommandListDefinition
Type Parameters
TCommandDefinition
Type of the command list definition.
Methods
Populate(Command, List<Command>)
Populates the commands in the command list. Add your command items to the commands
.
void Populate(Command command, List<Command> commands)
Parameters
Run(Command)
Runs the command.
Task Run(Command command)
Parameters
command
CommandAssociated command.
Returns
- Task
A task that represents the command execution.