Interface ICommandRunner<TResult>
An abstraction of a command runner.
public interface ICommandRunner<TResult> where TResult : CommandRunnerResult
Type Parameters
TResult
Methods
RunCommandAsync(CommandContext)
Runs a command asynchronously.
Task<TResult> RunCommandAsync(CommandContext context)
Parameters
context
CommandContextThe runner context.
Returns
- Task<TResult>
The runner result.
RunHelpAsync(CommandContext)
Runs a command help asynchronously.
Task RunHelpAsync(CommandContext context)
Parameters
context
CommandContextThe runner context.
Returns
- Task
The runner result.