ConnectionTimeoutExtensions.AddConnectionTimeout 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
的值。