Compartir a través de


ConnectionTimeoutExtensions.AddConnectionTimeout Método

Definición

Sobrecargas

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Agrega control de opciones para el middleware de tiempo de espera de conexión.

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Agrega control de opciones para el middleware de tiempo de espera de conexión.

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Agrega control de opciones para el middleware de tiempo de espera de conexión.

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

Contenedor de inserción de dependencias al que se va a agregar el servicio.

section
IConfigurationSection

Sección de configuración usada para configurar la característica.

Devoluciones

El valor de services.

Se aplica a

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Agrega control de opciones para el middleware de tiempo de espera de conexión.

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

Contenedor de inserción de dependencias al que se va a agregar el servicio.

configure
Action<ConnectionTimeoutOptions>

Delegue para configurar las opciones de tiempo de espera.

Devoluciones

El valor de services.

Se aplica a