Table of Contents

Class TerminalRemoteMessageQueue

Namespace
OneImlx.Terminal.Runtime
Assembly
OneImlx.Terminal.dll

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 ICommandRouter

The command router to process commands.

terminalExceptionHandler ITerminalExceptionHandler

The handler for exceptions thrown during command processing.

terminalOptions TerminalOptions

Configuration options for the terminal.

terminalRouterContext TerminalRouterContext

Context information for the terminal router.

logger ILogger

Logger 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 string

The command string to enqueue.

senderEndpoint EndPoint

The sender endpoint.

senderId string

The sender id.

StartCommandProcessing()

Starts processing the command queue in the background.

public Task StartCommandProcessing()

Returns

Task