WebHostBuilderKestrelExtensions.UseKestrel Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| UseKestrel(IWebHostBuilder) |
Jako server, který má webový hostitel používat, zadejte Kestrel. |
| UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>) |
Jako server, který má webový hostitel používat, zadejte Kestrel. |
| UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) |
Jako server, který má webový hostitel používat, zadejte Kestrel. |
| UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>) |
Jako server, který má webový hostitel používat, zadejte Kestrel. |
UseKestrel(IWebHostBuilder)
Jako server, který má webový hostitel používat, zadejte Kestrel.
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
Nakonfigurujte Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Návraty
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Platí pro
UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)
Jako server, který má webový hostitel používat, zadejte Kestrel.
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
Nakonfigurujte Microsoft.AspNetCore.Hosting.IWebHostBuilder.
- configureOptions
- Action<WebHostBuilderContext,KestrelServerOptions>
Zpětné volání pro konfiguraci možností Kestrel.
Návraty
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Platí pro
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
Jako server, který má webový hostitel používat, zadejte Kestrel.
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
Nakonfigurujte Microsoft.AspNetCore.Hosting.IWebHostBuilder.
- options
- Action<KestrelServerOptions>
Zpětné volání pro konfiguraci možností Kestrel.
Návraty
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.
Platí pro
UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)
Jako server, který má webový hostitel používat, zadejte Kestrel.
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
Nakonfigurujte Microsoft.AspNetCore.Hosting.IWebHostBuilder.
- options
- Action<KestrelServerOptions>
Zpětné volání pro konfiguraci možností Kestrel.
Návraty
The Microsoft.AspNetCore.Hosting.IWebHostBuilder.