Bagikan melalui


WebHostBuilderKestrelExtensions.UseKestrelHttpsConfiguration Metode

Definisi

Dalam UseKestrelCore(IWebHostBuilder) skenario, mungkin perlu untuk secara eksplisit memilih fungsionalitas HTTPS tertentu. Misalnya, jika ASPNETCORE_URLS menyertakan https:// alamat, UseKestrelHttpsConfiguration(IWebHostBuilder) akan mengaktifkan konfigurasi HTTPS pada titik akhir tersebut.

Tidak berpengaruh dalam UseKestrel(IWebHostBuilder) skenario.

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

Parameter

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder untuk dikonfigurasi.

Mengembalikan

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Berlaku untuk