Table of Contents

Method UseHandler

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

UseHandler<THandler>()

This method is an shortcut for calling RegisterHandler<T>().

public HttpServerHostContextBuilder UseHandler<THandler>() where THandler : HttpServerHandler, new()

Returns

HttpServerHostContextBuilder

Type Parameters

THandler

The handler which implements HttpServerHandler.

UseHandler(HttpServerHandler)

This method is an shortcut for calling RegisterHandler(HttpServerHandler).

public HttpServerHostContextBuilder UseHandler(HttpServerHandler handler)

Parameters

handler HttpServerHandler

The instance of the server handler.

Returns

HttpServerHostContextBuilder