Table of Contents

Class IHostBuilderExtensions

Namespace
OneImlx.Terminal.Extensions
Assembly
OneImlx.Terminal.dll

The IHostBuilder extension methods.

public static class IHostBuilderExtensions
Inheritance
IHostBuilderExtensions
Inherited Members

Methods

RunTerminalRouterAsync<TRouter, TContext>(IHostBuilder, TContext)

Starts the IHost and runs the ITerminalRouter<TContext> asynchronously, blocking the calling thread until a cancellation request.

public static Task RunTerminalRouterAsync<TRouter, TContext>(this IHostBuilder hostBuilder, TContext context) where TRouter : class, ITerminalRouter<TContext> where TContext : TerminalRouterContext

Parameters

hostBuilder IHostBuilder

The host builder.

context TContext

The routing context for terminal console routing.

Returns

Task

Type Parameters

TRouter
TContext

RunTerminalRouter<TRouter, TContext>(IHostBuilder, TContext)

Starts the IHost and runs the ITerminalRouter<TContext> synchronously, blocking the calling thread until a cancellation request.

public static void RunTerminalRouter<TRouter, TContext>(this IHostBuilder hostBuilder, TContext context) where TRouter : class, ITerminalRouter<TContext> where TContext : TerminalRouterContext

Parameters

hostBuilder IHostBuilder

The host builder.

context TContext

The routing context for terminal console routing.

Type Parameters

TRouter
TContext