Freigeben über


WebHostBuilderKestrelExtensions.ConfigureKestrel Methode

Definition

Überlädt

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Konfiguriert Kestrel-Optionen, registriert jedoch keinen IServer. Siehe UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Konfiguriert Kestrel-Optionen, registriert jedoch keinen IServer. Siehe UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Quelle:
WebHostBuilderKestrelExtensions.cs
Quelle:
WebHostBuilderKestrelExtensions.cs

Konfiguriert Kestrel-Optionen, registriert jedoch keinen IServer. Siehe 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

Parameter

hostBuilder
IWebHostBuilder

Der zu konfigurierende Microsoft.AspNetCore.Hosting.IWebHostBuilder.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Ein Rückruf zum Konfigurieren von Kestrel-Optionen.

Gibt zurück

Der Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Gilt für:

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Quelle:
WebHostBuilderKestrelExtensions.cs
Quelle:
WebHostBuilderKestrelExtensions.cs

Konfiguriert Kestrel-Optionen, registriert jedoch keinen IServer. Siehe 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

Parameter

hostBuilder
IWebHostBuilder

Der zu konfigurierende Microsoft.AspNetCore.Hosting.IWebHostBuilder.

options
Action<KestrelServerOptions>

Ein Rückruf zum Konfigurieren von Kestrel-Optionen.

Gibt zurück

Der Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Gilt für: