共用方式為


RequestTimeoutsIServiceCollectionExtensions.AddRequestTimeouts 方法

定義

多載

AddRequestTimeouts(IServiceCollection)

新增要求逾時服務。

AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)

新增要求逾時服務並設定相關選項。

AddRequestTimeouts(IServiceCollection)

來源:
RequestTimeoutsIServiceCollectionExtensions.cs

新增要求逾時服務。

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

來源:
RequestTimeoutsIServiceCollectionExtensions.cs

新增要求逾時服務並設定相關選項。

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 的委派。

傳回

適用於