RequestTimeoutsIServiceCollectionExtensions.AddRequestTimeouts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddRequestTimeouts(IServiceCollection) |
Add request timeout services. |
AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>) |
Add request timeout services and configure the related options. |
AddRequestTimeouts(IServiceCollection)
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>)
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.