Method
HttpServerHostContextBuilder.UseRouter
UseRouter(Action<Router>) #
Calls an action that has an Router instance from the host HTTP server.
public HttpServerHostContextBuilder UseRouter(Action<Router> handler)Parameters #
An action where the first argument is the main Router object.
Returns #
UseRouter(Router) #
Sets an Router instance in the current listening host.
public HttpServerHostContextBuilder UseRouter(Router r)Parameters #
r Router
The Router to the current host builder.