AddDelegate<TSettings>(string, Func<CommandContext, TSettings, int>) Method

Adds a command that executes a delegate.
ICommandConfigurator AddDelegate<TSettings>(string name, Func<CommandContext, TSettings, int> func) 
    where TSettings : CommandSettings
Containing Type
IConfigurator

Parameters

TSettings
The command setting type.

Parameters

string name
The name of the command.
Func<CommandContext, TSettings, int> func
The delegate to execute as part of command execution.

Returns