Table of Contents

Method 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.

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.

public HttpServerHostContextBuilder UseRouter(Router r)

Parameters

r Router

The Router to the current host builder.

Returns

HttpServerHostContextBuilder