WebHostBuilderKestrelExtensions.UseKestrel Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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)
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>)
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>)
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.