Udostępnij za pośrednictwem


WebHostBuilderKestrelExtensions.ConfigureKestrel Metoda

Definicja

Przeciążenia

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Konfiguruje opcje Kestrel, ale nie rejestruje serwera IServer. Zobacz: .

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Konfiguruje opcje Kestrel, ale nie rejestruje serwera IServer. Zobacz: .

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Źródło:
WebHostBuilderKestrelExtensions.cs
Źródło:
WebHostBuilderKestrelExtensions.cs

Konfiguruje opcje Kestrel, ale nie rejestruje serwera IServer. Zobacz: .

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

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Wywołanie zwrotne w celu skonfigurowania opcji Kestrel.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Źródło:
WebHostBuilderKestrelExtensions.cs
Źródło:
WebHostBuilderKestrelExtensions.cs

Konfiguruje opcje Kestrel, ale nie rejestruje serwera IServer. Zobacz: 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

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

options
Action<KestrelServerOptions>

Wywołanie zwrotne w celu skonfigurowania opcji Kestrel.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy