Partilhar via


ConnectionTimeoutExtensions.AddConnectionTimeout Método

Definição

Sobrecargas

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Adiciona o tratamento de opção para o middleware de tempo limite de conexão.

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Adiciona o tratamento de opção para o middleware de tempo limite de conexão.

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Adiciona o tratamento de opção para o middleware de tempo limite de conexão.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnectionTimeout (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddConnectionTimeout : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnectionTimeout (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar o serviço.

section
IConfigurationSection

A seção de configuração usada para configurar o recurso.

Retornos

O valor de services.

Aplica-se a

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Adiciona o tratamento de opção para o middleware de tempo limite de conexão.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnectionTimeout (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Connections.ConnectionTimeoutOptions> configure);
static member AddConnectionTimeout : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Connections.ConnectionTimeoutOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnectionTimeout (services As IServiceCollection, configure As Action(Of ConnectionTimeoutOptions)) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar o serviço.

configure
Action<ConnectionTimeoutOptions>

Delegar para configurar as opções de tempo limite.

Retornos

O valor de services.

Aplica-se a