Condividi tramite


WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Metodo

Definizione

Negli UseKestrelCore(IWebHostBuilder) scenari potrebbe essere necessario acconsentire esplicitamente a determinate funzionalità HTTPS. Ad esempio, se ASPNETCORE_URLS include un https:// indirizzo, UseKestrelHttpsConfiguration(IWebHostBuilder) abiliterà la configurazione di HTTPS in tale endpoint.

Non ha alcun effetto negli UseKestrel(IWebHostBuilder) scenari.

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

Parametri

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder da configurare.

Restituisce

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Si applica a