Sisk

Method

HttpServerHostContextBuilder.UseBootstraper

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

UseBootstraper(Action) #

Adds an function that will be executed immediately before starting the HTTP server.

C#
public HttpServerHostContextBuilder UseBootstraper(Action bootstrapAction)

Parameters #

bootstrapAction Action

The action which will be executed before the HTTP server start.

Returns #

HttpServerHostContextBuilder

UseBootstraper(string, Action) #

Adds an function that will be executed immediately before starting the HTTP server.

C#
public HttpServerHostContextBuilder UseBootstraper(string name, Action bootstrapAction)

Parameters #

name string

Defines an custom label for the bootstraping action name.

bootstrapAction Action

The action which will be executed before the HTTP server start.

Returns #

HttpServerHostContextBuilder

UseBootstraper(Func<Task>) #

Adds an asynchronous function that will be executed immediately before starting the HTTP server.

C#
public HttpServerHostContextBuilder UseBootstraper(Func<Task> asyncBootstrapAction)

Parameters #

asyncBootstrapAction Func<Task>

The asynchronous action which will be executed before the HTTP server start.

Returns #

HttpServerHostContextBuilder

UseBootstraper(string, Func<Task>) #

Adds an asynchronous function that will be executed immediately before starting the HTTP server.

C#
public HttpServerHostContextBuilder UseBootstraper(string name, Func<Task> asyncBootstrapAction)

Parameters #

name string

Defines an custom label for the bootstraping action name.

asyncBootstrapAction Func<Task>

The asynchronous action which will be executed before the HTTP server start.

Returns #

HttpServerHostContextBuilder

The HttpServerHostContextBuilder instance.

Type to search the documentation and the API reference.