Class CommandParser
The default ICommandParser.
public class CommandParser : ICommandParser
- Inheritance
-
CommandParser
- Implements
- Inherited Members
Constructors
CommandParser(ICommandRouteParser, ILogger<CommandParser>)
Initialize a new instance.
public CommandParser(ICommandRouteParser commandRouteParser, ILogger<CommandParser> logger)
Parameters
commandRouteParser
ICommandRouteParserThe command route parser.
logger
ILogger<CommandParser>The logger.
Methods
ParseCommandAsync(CommandParserContext)
Extracts Command asynchronously.
public Task<CommandParserResult> ParseCommandAsync(CommandParserContext context)
Parameters
context
CommandParserContextThe option extraction context.
Returns
- Task<CommandParserResult>
The CommandParserResult instance.