Method
HttpServerHostContextBuilder.UseEngine
UseEngine(HttpServerEngine) #
Sets the HTTP server engine.
public HttpServerHostContextBuilder UseEngine(HttpServerEngine engine)Parameters #
engine HttpServerEngine
The HttpServerEngine to use.
Returns #
The current HttpServerHostContextBuilder instance.
UseEngine<TEngine>() #
Sets the HTTP server engine using a default constructor.
public HttpServerHostContextBuilder UseEngine<TEngine>() where TEngine : HttpServerEngine, new()Returns #
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.
UseEngine<TEngine>(Action<TEngine>) #
Sets the HTTP server engine using a default constructor and applies the specified configuration action.
public HttpServerHostContextBuilder UseEngine<TEngine>(Action<TEngine> setup) where TEngine : HttpServerEngine, new()Parameters #
setup Action<TEngine>
An action that configures the newly created engine instance.
Returns #
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.
UseEngine<TEngine>(Func<TEngine>) #
Sets the HTTP server engine using a factory method.
public HttpServerHostContextBuilder UseEngine<TEngine>(Func<TEngine> create) where TEngine : HttpServerEngineParameters #
create Func<TEngine>
A factory method that creates an instance of the engine.
Returns #
The current HttpServerHostContextBuilder instance.
Type Parameters #
TEngine
The type of the HTTP server engine to use, which must inherit from HttpServerEngine.