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
hostBuilderIHostBuilderThe host builder.
contextTContextThe routing context for terminal console routing.
Returns
Type Parameters
TRouterTContext
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
hostBuilderIHostBuilderThe host builder.
contextTContextThe routing context for terminal console routing.
Type Parameters
TRouterTContext