Class TerminalRemoteMessageQueue
Manages the queue of terminal commands and processes them asynchronously.
public sealed class TerminalRemoteMessageQueue
- Inheritance
-
TerminalRemoteMessageQueue
- Inherited Members
Constructors
TerminalRemoteMessageQueue(ICommandRouter, ITerminalExceptionHandler, TerminalOptions, TerminalRouterContext, ILogger)
Initializes a new instance.
public TerminalRemoteMessageQueue(ICommandRouter commandRouter, ITerminalExceptionHandler terminalExceptionHandler, TerminalOptions terminalOptions, TerminalRouterContext terminalRouterContext, ILogger logger)
Parameters
commandRouter
ICommandRouterThe command router to process commands.
terminalExceptionHandler
ITerminalExceptionHandlerThe handler for exceptions thrown during command processing.
terminalOptions
TerminalOptionsConfiguration options for the terminal.
terminalRouterContext
TerminalRouterContextContext information for the terminal router.
logger
ILoggerLogger for logging operations within the queue.
Methods
Enqueue(string, EndPoint, string?)
Enqueues commands in the message for processing in the queue.
public void Enqueue(string message, EndPoint senderEndpoint, string? senderId)
Parameters
message
stringThe command string to enqueue.
senderEndpoint
EndPointThe sender endpoint.
senderId
stringThe sender id.
StartCommandProcessing()
Starts processing the command queue in the background.
public Task StartCommandProcessing()