WebHostBuilderKestrelExtensions Class

Definition

Kestrel IWebHostBuilder extensions.

public ref class WebHostBuilderKestrelExtensions abstract sealed
public static class WebHostBuilderKestrelExtensions
type WebHostBuilderKestrelExtensions = class
Public Module WebHostBuilderKestrelExtensions
Inheritance
WebHostBuilderKestrelExtensions

Methods

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Configures Kestrel options but does not register an IServer. See UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Configures Kestrel options but does not register an IServer. See UseKestrel(IWebHostBuilder).

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Specify Kestrel as the server to be used by the web host.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Specify Kestrel as the server to be used by the web host.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Specify Kestrel as the server to be used by the web host.

UseKestrel(IWebHostBuilder)

Specify Kestrel as the server to be used by the web host.

UseKestrelCore(IWebHostBuilder)

Specify Kestrel as the server to be used by the web host. Includes less automatic functionality than UseKestrel(IWebHostBuilder) to make trimming more effective (e.g. for Native AOT scenarios). If the host ends up depending on some of the absent functionality, a best-effort attempt will be made to enable it on-demand. Failing that, an exception with an informative error message will be raised when the host is started.

UseKestrelHttpsConfiguration(IWebHostBuilder)

In UseKestrelCore(IWebHostBuilder) scenarios, it may be necessary to explicitly opt in to certain HTTPS functionality. For example, if ASPNETCORE_URLS includes an https:// address, UseKestrelHttpsConfiguration(IWebHostBuilder) will enable configuration of HTTPS on that endpoint.

Has no effect in UseKestrel(IWebHostBuilder) scenarios.

Applies to