Class CommandParser
The default ICommandParser.
public class CommandParser : ICommandParser
- Inheritance
-
CommandParser
- Implements
- Inherited Members
Constructors
CommandParser(ITerminalRequestParser, ITerminalTextHandler, ITerminalCommandStore, IOptions<TerminalOptions>, ILogger<CommandParser>)
Initialize a new instance.
public CommandParser(ITerminalRequestParser terminalRequestParser, ITerminalTextHandler textHandler, ITerminalCommandStore commandStore, IOptions<TerminalOptions> terminalOptions, ILogger<CommandParser> logger)
Parameters
terminalRequestParser
ITerminalRequestParserThe terminal request parser.
textHandler
ITerminalTextHandlercommandStore
ITerminalCommandStoreterminalOptions
IOptions<TerminalOptions>logger
ILogger<CommandParser>The logger.
Methods
ParseCommandAsync(CommandContext)
Extracts Command asynchronously.
public Task ParseCommandAsync(CommandContext context)
Parameters
context
CommandContextThe option extraction context.