WebHostBuilderKestrelExtensions.ConfigureKestrel Método
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
ConfigureKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) |
Configura las opciones de Kestrel, pero no registra un IServer. Vea UseKestrel(IWebHostBuilder). |
ConfigureKestrel(IWebHostBuilder, Action<KestrelServerOptions>) |
Configura las opciones de Kestrel, pero no registra un IServer. Vea UseKestrel(IWebHostBuilder). |
Configura las opciones de Kestrel, pero no registra un IServer. Vea 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
Parámetros
- hostBuilder
- IWebHostBuilder
Microsoft.AspNetCore.Hosting.IWebHostBuilder que se va a configurar.
- configureOptions
- Action<WebHostBuilderContext,KestrelServerOptions>
Devolución de llamada para configurar las opciones de Kestrel.
Devoluciones
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Se aplica a
Configura las opciones de Kestrel, pero no registra un IServer. Vea 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
Parámetros
- hostBuilder
- IWebHostBuilder
Microsoft.AspNetCore.Hosting.IWebHostBuilder que se va a configurar.
- options
- Action<KestrelServerOptions>
Devolución de llamada para configurar las opciones de Kestrel.
Devoluciones
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.