Compartilhar via


RequestTimeoutsIServiceCollectionExtensions.AddRequestTimeouts Método

Definição

Sobrecargas

AddRequestTimeouts(IServiceCollection)

Adicionar serviços de tempo limite de solicitação.

AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)

Adicione serviços de tempo limite de solicitação e configure as opções relacionadas.

AddRequestTimeouts(IServiceCollection)

Origem:
RequestTimeoutsIServiceCollectionExtensions.cs

Adicionar serviços de tempo limite de solicitação.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

Retornos

Aplica-se a

AddRequestTimeouts(IServiceCollection, Action<RequestTimeoutOptions>)

Origem:
RequestTimeoutsIServiceCollectionExtensions.cs

Adicione serviços de tempo limite de solicitação e configure as opções relacionadas.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

configure
Action<RequestTimeoutOptions>

Um delegado para configurar o RequestTimeoutOptions.

Retornos

Aplica-se a