Table of Contents

Method UseEngine

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

UseEngine(HttpServerEngine)

Sets the HTTP server engine.

public HttpServerHostContextBuilder UseEngine(HttpServerEngine engine)

Parameters

engine HttpServerEngine

The HttpServerEngine to use.

Returns

HttpServerHostContextBuilder

The current HttpServerHostContextBuilder instance.

UseEngine<TEngine>()

Sets the HTTP server engine using a default constructor.

public HttpServerHostContextBuilder UseEngine<TEngine>() where TEngine : HttpServerEngine, new()

Returns

HttpServerHostContextBuilder

The current HttpServerHostContextBuilder instance.

Type Parameters

TEngine

The type of the HTTP server engine to use, which must inherit from HttpServerEngine and have a parameterless constructor.