ConnectionTimeoutExtensions.AddConnectionTimeout 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
AddConnectionTimeout(IServiceCollection, IConfigurationSection) |
Adds option handling for the connection timeout middleware. |
AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>) |
Adds option handling for the connection timeout middleware. |
AddConnectionTimeout(IServiceCollection, IConfigurationSection)
Adds option handling for the connection timeout middleware.
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
Parameters
- services
- IServiceCollection
The dependency injection container to add the service to.
- section
- IConfigurationSection
The configuration section used to configure the feature.
Returns
The value of services
.
Applies to
AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)
Adds option handling for the connection timeout middleware.
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
Parameters
- services
- IServiceCollection
The dependency injection container to add the service to.
- configure
- Action<ConnectionTimeoutOptions>
Delegate to configure the timeout options.
Returns
The value of services
.