Share via


RequestTimeoutsIServiceCollectionExtensions.AddRequestTimeouts Method

Definition

Overloads

AddRequestTimeouts(IServiceCollection)

Add request timeout services.

AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)

Add request timeout services and configure the related options.

AddRequestTimeouts(IServiceCollection)

Source:
RequestTimeoutsIServiceCollectionExtensions.cs

Add request timeout services.

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

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

Returns

Applies to

AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)

Source:
RequestTimeoutsIServiceCollectionExtensions.cs

Add request timeout services and configure the related options.

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

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

configure
Action<RequestTimeoutOptions>

A delegate to configure the RequestTimeoutOptions.

Returns

Applies to