Aracılığıyla paylaş


ConnectionTimeoutExtensions.AddConnectionTimeout Yöntem

Tanım

Aşırı Yüklemeler

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Bağlantı zaman aşımı ara yazılımı için seçenek işleme ekler.

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Bağlantı zaman aşımı ara yazılımı için seçenek işleme ekler.

AddConnectionTimeout(IServiceCollection, IConfigurationSection)

Bağlantı zaman aşımı ara yazılımı için seçenek işleme ekler.

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

Parametreler

services
IServiceCollection

Hizmetin ekleneceği bağımlılık ekleme kapsayıcısı.

section
IConfigurationSection

Özelliği yapılandırmak için kullanılan yapılandırma bölümü.

Döndürülenler

değeridir services.

Şunlara uygulanır

AddConnectionTimeout(IServiceCollection, Action<ConnectionTimeoutOptions>)

Bağlantı zaman aşımı ara yazılımı için seçenek işleme ekler.

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

Parametreler

services
IServiceCollection

Hizmetin ekleneceği bağımlılık ekleme kapsayıcısı.

configure
Action<ConnectionTimeoutOptions>

Zaman aşımı seçeneklerini yapılandırmak için temsilci seçin.

Döndürülenler

değeridir services.

Şunlara uygulanır