Method UseHandler
UseHandler<THandler>()
This method is an shortcut for calling RegisterHandler<T>().
public HttpServerHostContextBuilder UseHandler<THandler>() where THandler : HttpServerHandler, new()
Returns
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
HttpServerHandlerThe instance of the server handler.