WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Metoda

Definicja

W UseKestrelCore(IWebHostBuilder) scenariuszach może być konieczne jawne wyrażenie zgody na korzystanie z niektórych funkcji PROTOKOŁU HTTPS. Jeśli na przykład ASPNETCORE_URLS zawiera adres, UseKestrelHttpsConfiguration(IWebHostBuilder) włączy konfigurację https:// protokołu HTTPS w tym punkcie końcowym.

Nie ma wpływu na UseKestrel(IWebHostBuilder) scenariusze.

public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseKestrelHttpsConfiguration (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder);
static member UseKestrelHttpsConfiguration : Microsoft.AspNetCore.Hosting.IWebHostBuilder -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseKestrelHttpsConfiguration (hostBuilder As IWebHostBuilder) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Program Microsoft.AspNetCore.Hosting.IWebHostBuilder do skonfigurowania.

Zwraca

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Dotyczy