共用方式為


ConnectionTimeoutExtensions.AddConnectionTimeout 方法

定義

多載

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

新增連接逾時中介軟體的選項處理。

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

新增連接逾時中介軟體的選項處理。

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

新增連接逾時中介軟體的選項處理。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnectionTimeout (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddConnectionTimeout : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnectionTimeout (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

參數

services
IServiceCollection

要加入服務的相依性插入容器。

section
IConfigurationSection

用來設定功能的組態區段。

傳回

services 的值。

適用於

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

新增連接逾時中介軟體的選項處理。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnectionTimeout (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Connections.ConnectionTimeoutOptions> configure);
static member AddConnectionTimeout : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Connections.ConnectionTimeoutOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnectionTimeout (services As IServiceCollection, configure As Action(Of ConnectionTimeoutOptions)) As IServiceCollection

參數

services
IServiceCollection

要加入服務的相依性插入容器。

configure
Action<ConnectionTimeoutOptions>

委派以設定逾時選項。

傳回

services 的值。

適用於