ConnectionTimeoutExtensions.AddConnectionTimeout Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin