WebHostBuilderKestrelExtensions Class

Namespace
Microsoft.AspNetCore.Hosting
Assemblies
  • Microsoft.AspNetCore.Server.Kestrel

Syntax

public class WebHostBuilderKestrelExtensions
class Microsoft.AspNetCore.Hosting.WebHostBuilderKestrelExtensions

Methods

UseKestrel(Microsoft.AspNetCore.Hosting.IWebHostBuilder)

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

Arguments:hostBuilder (Microsoft.AspNetCore.Hosting.IWebHostBuilder) – The Microsoft.AspNetCore.Hosting.IWebHostBuilder to configure.
Return type:Microsoft.AspNetCore.Hosting.IWebHostBuilder
Returns:The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder)
UseKestrel(Microsoft.AspNetCore.Hosting.IWebHostBuilder, System.Action<Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions>)

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

Arguments:
Return type:

Microsoft.AspNetCore.Hosting.IWebHostBuilder

Returns:

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options)