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

Adds a command without settings that executes a delegate.
public static ICommandConfigurator AddDelegate(this IConfigurator configurator, string name, Func<CommandContext, int> func)
Containing Type
ConfiguratorExtensions

Parameters

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

Returns