WebHostBuilderKestrelExtensions.UseKestrel Metoda

Definicja

Przeciążenia

UseKestrel(IWebHostBuilder)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci Web.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci Web.

UseKestrel(IWebHostBuilder)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci 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

Parametry

hostBuilder
IWebHostBuilder

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci 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

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

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci 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

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

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Określ Kestrel jako serwer, który ma być używany przez hosta sieci 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

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