Sisk

Method

HttpServerHostContextBuilder.UseRouter

Namespace
Sisk.Core.Http.Hosting
Assembly
Sisk.Core.dll

UseRouter(Action<Router>) #

Calls an action that has an Router instance from the host HTTP server.

C#
public HttpServerHostContextBuilder UseRouter(Action<Router> handler)

Parameters #

handler Action<Router>

An action where the first argument is the main Router object.

Returns #

HttpServerHostContextBuilder

UseRouter(Router) #

Sets an Router instance in the current listening host.

C#
public HttpServerHostContextBuilder UseRouter(Router r)

Parameters #

r Router

The Router to the current host builder.

Returns #

HttpServerHostContextBuilder

Type to search the documentation and the API reference.