Interface IConsoleCommandService
Dispatches console input to a method marked with ConsoleCommandAttribute.
public interface IConsoleCommandService
Properties
Registry
Gets the command registry containing all registered console commands.
ICommandRegistry Registry { get; }
Property Value
Methods
Invoke(IServiceProvider, ConsoleCommandDispatchContext, string)
Invokes a console command from the given input text.
bool Invoke(IServiceProvider services, ConsoleCommandDispatchContext context, string inputText)
Parameters
servicesIServiceProviderThe service provider for dependency injection.
contextConsoleCommandDispatchContextThe context for the console command dispatch.
inputTextstringThe input text representing the command to invoke.