Interface ICommandActionBuilder<T>
Sets the action of a command built from code.
public interface ICommandActionBuilder<out T> : ICommandBuilder where T : ICommandActionBuilder<out T>
Type Parameters
T
- Inherited Members
Methods
WithAction(Action<ICommandContext>)
Sets the action that runs when the command is typed. It receives the command's context.
T WithAction(Action<ICommandContext> action)
Parameters
actionAction<ICommandContext>
Returns
- T