WebHostBuilderKestrelExtensions.UseKestrel Método

Definição

Sobrecargas

UseKestrel(IWebHostBuilder)

Especifique Kestrel como o servidor a ser usado pelo host da Web.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da Web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da Web.

UseKestrel(IWebHostBuilder)

Especifique Kestrel como o servidor a ser usado pelo host da 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

Parâmetros

hostBuilder
IWebHostBuilder

O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.

Retornos

O Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Aplica-se a

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da 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

Parâmetros

hostBuilder
IWebHostBuilder

O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Um retorno de chamada para configurar as opções do Kestrel.

Retornos

O Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Aplica-se a

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da 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

Parâmetros

hostBuilder
IWebHostBuilder

O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.

options
Action<KestrelServerOptions>

Um retorno de chamada para configurar as opções do Kestrel.

Retornos

O Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Aplica-se a

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Especifique Kestrel como o servidor a ser usado pelo host da 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

Parâmetros

hostBuilder
IWebHostBuilder

O Microsoft.AspNetCore.Hosting.IWebHostBuilder a ser configurado.

options
Action<KestrelServerOptions>

Um retorno de chamada para configurar as opções do Kestrel.

Retornos

O Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Aplica-se a