Interface ITerminalRouter<TContext>
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
TContextThe terminal router context.