Table of Contents

Interface ITerminalRouter<TContext>

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

An abstraction of a context aware terminal router.

public interface ITerminalRouter<TContext> where TContext : TerminalRouterContext

Type Parameters

TContext

Remarks

This terminal router runs indefinitely until it receives a cancellation request or when the application stops. It is responsible for receiving commands and routing them to the appropriate command routers based on the context. The operation is asynchronous, continuously handling incoming commands and delegating them as long as the router is running.

Methods

RunAsync(TContext)

Runs terminal router asynchronously.

Task RunAsync(TContext context)

Parameters

context TContext

The terminal router context.

Returns

Task