Method UseEngine
UseEngine(HttpServerEngine)
Sets the HTTP server engine.
public HttpServerHostContextBuilder UseEngine(HttpServerEngine engine)
Parameters
engineHttpServerEngineThe 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
TEngineThe 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
setupAction<TEngine>An action that configures the newly created engine instance.
Returns
- HttpServerHostContextBuilder
The current HttpServerHostContextBuilder instance.
Type Parameters
TEngineThe 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 : HttpServerEngine
Parameters
createFunc<TEngine>A factory method that creates an instance of the engine.
Returns
- HttpServerHostContextBuilder
The current HttpServerHostContextBuilder instance.
Type Parameters
TEngineThe type of the HTTP server engine to use, which must inherit from HttpServerEngine.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語