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()

Source:
KestrelServerOptions.cs
Source:
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)

Source:
KestrelServerOptions.cs
Source:
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 进一步终结点配置的 。

适用于