WebHostBuilderKestrelExtensions.UseKestrel WebHostBuilderKestrelExtensions.UseKestrel WebHostBuilderKestrelExtensions.UseKestrel Method

Definition

Overloads

UseKestrel(IWebHostBuilder) UseKestrel(IWebHostBuilder) UseKestrel(IWebHostBuilder)

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

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

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

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

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

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

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

UseKestrel(IWebHostBuilder) UseKestrel(IWebHostBuilder) UseKestrel(IWebHostBuilder)

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

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (hostBuilder As IWebHostBuilder) As IWebHostBuilder
Parameters
hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

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

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> configureOptions);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (hostBuilder As IWebHostBuilder, configureOptions As Action(Of WebHostBuilderContext, KestrelServerOptions)) As IWebHostBuilder
Parameters
hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

A callback to configure Kestrel options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

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

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> options);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (hostBuilder As IWebHostBuilder, options As Action(Of KestrelServerOptions)) As IWebHostBuilder
Parameters
hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

options
Action<KestrelServerOptions>

A callback to configure Kestrel options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

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

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions> options);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (hostBuilder As IWebHostBuilder, options As Action(Of KestrelServerOptions)) As IWebHostBuilder
Parameters
hostBuilder
IWebHostBuilder IWebHostBuilder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.

options
Action<KestrelServerOptions>

A callback to configure Kestrel options.

Returns

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Applies to