Condividi tramite


WebHostBuilderKestrelExtensions.UseKestrel Metodo

Definizione

Overload

UseKestrel(IWebHostBuilder)

Specificare Kestrel come server da usare dall'host Web.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Specificare Kestrel come server da usare dall'host Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Specificare Kestrel come server da usare dall'host Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Specificare Kestrel come server da usare dall'host Web.

UseKestrel(IWebHostBuilder)

Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs

Specificare Kestrel come server da usare dall'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parametri

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs

Specificare Kestrel come server da usare dall'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ configureOptions);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> configureOptions);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (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 di Kestrel.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs
Origine:
WebHostBuilderKestrelExtensions.cs

Specificare Kestrel come server da usare dall'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::Kestrel::Core::KestrelServerOptions ^> ^ options);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> options);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (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 di Kestrel.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Specificare Kestrel come server da usare dall'host Web.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseKestrel(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Server::Kestrel::KestrelServerOptions ^> ^ options);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrel (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions> options);
static member UseKestrel : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Server.Kestrel.KestrelServerOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrel (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 di Kestrel.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a