Share via


WebHostBuilderKestrelExtensions.ConfigureKestrel Metodo

Definizione

Overload

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Configura le opzioni Kestrel ma non registra un IServer. Vedere UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Configura le opzioni Kestrel ma non registra un IServer. Vedere UseKestrel(IWebHostBuilder).

ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Origine:
WebHostBuilderKestrelExtensions.cs

Configura le opzioni Kestrel ma non registra un IServer. Vedere 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

Parametri

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Callback per configurare le opzioni Kestrel.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a

ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Origine:
WebHostBuilderKestrelExtensions.cs

Configura le opzioni Kestrel ma non registra un IServer. Vedere 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

Parametri

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.

options
Action<KestrelServerOptions>

Callback per configurare le opzioni Kestrel.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a