Sdílet prostřednictvím


WebHostBuilderKestrelExtensions.ConfigureKestrel Metoda

Definice

Přetížení

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Konfiguruje možnosti Kestrel, ale neregistruje IServer. Viz třída UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Konfiguruje možnosti Kestrel, ale neregistruje IServer. Viz třída UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Zdroj:
WebHostBuilderKestrelExtensions.cs
Zdroj:
WebHostBuilderKestrelExtensions.cs

Konfiguruje možnosti Kestrel, ale neregistruje IServer. Viz třída UseKestrel(IWebHostBuilder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> configureOptions);
static member ConfigureKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureKestrel (hostBuilder As IWebHostBuilder, configureOptions As Action(Of WebHostBuilderContext, KestrelServerOptions)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder ke konfiguraci.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Zpětné volání pro konfiguraci možností Kestrel.

Návraty

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Platí pro

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Zdroj:
WebHostBuilderKestrelExtensions.cs
Zdroj:
WebHostBuilderKestrelExtensions.cs

Konfiguruje možnosti Kestrel, ale neregistruje IServer. Viz třída UseKestrel(IWebHostBuilder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ options);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> options);
static member ConfigureKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureKestrel (hostBuilder As IWebHostBuilder, options As Action(Of KestrelServerOptions)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder ke konfiguraci.

options
Action<KestrelServerOptions>

Zpětné volání pro konfiguraci možností Kestrel.

Návraty

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Platí pro