Method UseBootstraper
UseBootstraper(Action)
Adds an function that will be executed immediately before starting the HTTP server.
public HttpServerHostContextBuilder UseBootstraper(Action bootstrapAction)
Parameters
bootstrapActionActionThe action which will be executed before the HTTP server start.
Returns
UseBootstraper(string, Action)
Adds an function that will be executed immediately before starting the HTTP server.
public HttpServerHostContextBuilder UseBootstraper(string name, Action bootstrapAction)
Parameters
namestringDefines an custom label for the bootstraping action name.
bootstrapActionActionThe action which will be executed before the HTTP server start.
Returns
UseBootstraper(Func<Task>)
Adds an asynchronous function that will be executed immediately before starting the HTTP server.
public HttpServerHostContextBuilder UseBootstraper(Func<Task> asyncBootstrapAction)
Parameters
asyncBootstrapActionFunc<Task>The asynchronous action which will be executed before the HTTP server start.
Returns
UseBootstraper(string, Func<Task>)
Adds an asynchronous function that will be executed immediately before starting the HTTP server.
public HttpServerHostContextBuilder UseBootstraper(string name, Func<Task> asyncBootstrapAction)
Parameters
namestringDefines an custom label for the bootstraping action name.
asyncBootstrapActionFunc<Task>The asynchronous action which will be executed before the HTTP server start.
Returns
- HttpServerHostContextBuilder
The HttpServerHostContextBuilder instance.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語