RequestTimeoutsIServiceCollectionExtensions.AddRequestTimeouts 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRequestTimeouts(IServiceCollection) |
新增要求逾時服務。 |
AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>) |
新增要求逾時服務並設定相關選項。 |
AddRequestTimeouts(IServiceCollection)
新增要求逾時服務。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestTimeouts (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestTimeouts : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestTimeouts (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
用於 IServiceCollection 新增服務的 。
傳回
適用於
AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)
新增要求逾時服務並設定相關選項。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestTimeouts (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutOptions> configure);
static member AddRequestTimeouts : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestTimeouts (services As IServiceCollection, configure As Action(Of RequestTimeoutOptions)) As IServiceCollection
參數
- services
- IServiceCollection
用於 IServiceCollection 新增服務的 。
- configure
- Action<RequestTimeoutOptions>
設定 RequestTimeoutOptions 的委派。