Class TerminalRequestQueueParser
The default ITerminalRequestParser that uses a queue to parse the terminal request.
public class TerminalRequestQueueParser : ITerminalRequestParser
- Inheritance
-
TerminalRequestQueueParser
- Implements
- Inherited Members
Constructors
TerminalRequestQueueParser(ITerminalTextHandler, IOptions<TerminalOptions>, ILogger<TerminalRequestQueueParser>)
Initializes a new instance of the TerminalRequestQueueParser class.
public TerminalRequestQueueParser(ITerminalTextHandler textHandler, IOptions<TerminalOptions> terminalOptions, ILogger<TerminalRequestQueueParser> logger)
Parameters
textHandler
ITerminalTextHandlerThe text handler.
terminalOptions
IOptions<TerminalOptions>The terminal configuration options.
logger
ILogger<TerminalRequestQueueParser>The logger.
Methods
ParseRequestAsync(TerminalRequest)
Parses the terminal request asynchronously.
public Task<TerminalParsedRequest> ParseRequestAsync(TerminalRequest request)
Parameters
request
TerminalRequestThe terminal request to parse.
Returns
- Task<TerminalParsedRequest>
A task that represents the asynchronous parse operation. The task result contains the parsed request.