Share via


KestrelServerOptions.Configure 方法

定義

多載

Configure(IConfiguration, Boolean)

建立設定載入器來設定以 IConfiguration 作為輸入的 Kestrel。 此設定的範圍必須限定為 Kestrel 的組態區段。

Configure()

建立設定 Kestrel 的組態載入器。

Configure(IConfiguration)

建立設定載入器來設定以 IConfiguration 作為輸入的 Kestrel。 此設定的範圍必須限定為 Kestrel 的組態區段。 呼叫 Configure(IConfiguration, Boolean) 以啟用動態端點系結更新。

Configure(IConfiguration, Boolean)

建立設定載入器來設定以 IConfiguration 作為輸入的 Kestrel。 此設定的範圍必須限定為 Kestrel 的組態區段。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure(Microsoft::Extensions::Configuration::IConfiguration ^ config, bool reloadOnChange);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure (Microsoft.Extensions.Configuration.IConfiguration config, bool reloadOnChange);
member this.Configure : Microsoft.Extensions.Configuration.IConfiguration * bool -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure (config As IConfiguration, reloadOnChange As Boolean) As KestrelConfigurationLoader

參數

config
IConfiguration

Kestrel 的組態區段。

reloadOnChange
Boolean

如果為 true ,Kestrel 會在組態變更時動態更新端點系結。 這只會重載 您在 的 [端點] 區段中 config 定義的端點。 不會重載程式碼中定義的端點。

傳回

KestrelConfigurationLoader 用於進一步的端點設定。

適用於

Configure()

來源:
KestrelServerOptions.cs
來源:
KestrelServerOptions.cs

建立設定 Kestrel 的組態載入器。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure();
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure ();
member this.Configure : unit -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure () As KestrelConfigurationLoader

傳回

用於 KestrelConfigurationLoader 設定端點的 。

適用於

Configure(IConfiguration)

來源:
KestrelServerOptions.cs
來源:
KestrelServerOptions.cs

建立設定載入器來設定以 IConfiguration 作為輸入的 Kestrel。 此設定的範圍必須限定為 Kestrel 的組態區段。 呼叫 Configure(IConfiguration, Boolean) 以啟用動態端點系結更新。

public:
 Microsoft::AspNetCore::Server::Kestrel::KestrelConfigurationLoader ^ Configure(Microsoft::Extensions::Configuration::IConfiguration ^ config);
public Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader Configure (Microsoft.Extensions.Configuration.IConfiguration config);
member this.Configure : Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader
Public Function Configure (config As IConfiguration) As KestrelConfigurationLoader

參數

config
IConfiguration

Kestrel 的組態區段。

傳回

KestrelConfigurationLoader 用於進一步的端點設定。

適用於