Bagikan melalui


WebHostBuilderKestrelExtensions.UseKestrel Metode

Definisi

Overload

UseKestrel(IWebHostBuilder)

Tentukan Kestrel sebagai server yang akan digunakan oleh host web.

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Tentukan Kestrel sebagai server yang akan digunakan oleh host web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Tentukan Kestrel sebagai server yang akan digunakan oleh host web.

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Tentukan Kestrel sebagai server yang akan digunakan oleh host web.

UseKestrel(IWebHostBuilder)

Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs

Tentukan Kestrel sebagai server yang akan digunakan oleh 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

Parameter

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder untuk dikonfigurasi.

Mengembalikan

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Berlaku untuk

UseKestrel(IWebHostBuilder, Action<WebHostBuilderContext,KestrelServerOptions>)

Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs

Tentukan Kestrel sebagai server yang akan digunakan oleh 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

Parameter

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder untuk dikonfigurasi.

configureOptions
Action<WebHostBuilderContext,KestrelServerOptions>

Panggilan balik untuk mengonfigurasi opsi Kestrel.

Mengembalikan

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Berlaku untuk

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs
Sumber:
WebHostBuilderKestrelExtensions.cs

Tentukan Kestrel sebagai server yang akan digunakan oleh 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

Parameter

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder untuk dikonfigurasi.

options
Action<KestrelServerOptions>

Panggilan balik untuk mengonfigurasi opsi Kestrel.

Mengembalikan

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Berlaku untuk

UseKestrel(IWebHostBuilder, Action<KestrelServerOptions>)

Tentukan Kestrel sebagai server yang akan digunakan oleh 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

Parameter

hostBuilder
IWebHostBuilder

Microsoft.AspNetCore.Hosting.IWebHostBuilder untuk dikonfigurasi.

options
Action<KestrelServerOptions>

Panggilan balik untuk mengonfigurasi opsi Kestrel.

Mengembalikan

The Microsoft.AspNetCore.Hosting.IWebHostBuilder.

Berlaku untuk