Table of Contents

Class TerminalConsoleRouter

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

The default ITerminalRouter<TContext> for console based terminals.

public class TerminalConsoleRouter : ITerminalRouter<TerminalConsoleRouterContext>
Inheritance
TerminalConsoleRouter
Implements
Inherited Members

Constructors

TerminalConsoleRouter(ITerminalConsole, IHostApplicationLifetime, ICommandRouter, ITerminalExceptionHandler, TerminalOptions, ILogger<TerminalConsoleRouter>)

Initialize a new TerminalConsoleRouter instance.

public TerminalConsoleRouter(ITerminalConsole terminalConsole, IHostApplicationLifetime applicationLifetime, ICommandRouter commandRouter, ITerminalExceptionHandler exceptionHandler, TerminalOptions options, ILogger<TerminalConsoleRouter> logger)

Parameters

terminalConsole ITerminalConsole

The terminal console.

applicationLifetime IHostApplicationLifetime

The host application lifetime instance.

commandRouter ICommandRouter

The command router.

exceptionHandler ITerminalExceptionHandler

The exception handler.

options TerminalOptions

The configuration options.

logger ILogger<TerminalConsoleRouter>

The logger.

Methods

RunAsync(TerminalConsoleRouterContext)

Runs to the terminal as a console asynchronously.

public virtual Task RunAsync(TerminalConsoleRouterContext context)

Parameters

context TerminalConsoleRouterContext

The routing service context.

Returns

Task