PollyServiceCollectionExtensions.AddPolicyRegistry 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
AddPolicyRegistry(IServiceCollection) |
Hizmet koleksiyonunda boş PolicyRegistry bir değeri hizmet türleriyle IPolicyRegistry<TKey>kaydeder ve IReadOnlyPolicyRegistry<TKey> yeni oluşturulan kayıt defterini döndürür. |
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) |
Hizmet koleksiyonunda sağlanan IPolicyRegistry<TKey> öğesini hizmet türleriyle IPolicyRegistry<TKey>kaydeder ve IReadOnlyPolicyRegistry<TKey> sağlanan kayıt defterini döndürür. |
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>) |
AddPolicyRegistry(IServiceCollection)
Hizmet koleksiyonunda boş PolicyRegistry bir değeri hizmet türleriyle IPolicyRegistry<TKey>kaydeder ve IReadOnlyPolicyRegistry<TKey> yeni oluşturulan kayıt defterini döndürür.
public:
[System::Runtime::CompilerServices::Extension]
static Polly::Registry::IPolicyRegistry<System::String ^> ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Polly.Registry.IPolicyRegistry<string> AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Polly.Registry.IPolicyRegistry<string>
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection) As IPolicyRegistry(Of String)
Parametreler
- services
- IServiceCollection
Döndürülenler
Yeni oluşturulan PolicyRegistry.
Şunlara uygulanır
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
Hizmet koleksiyonunda sağlanan IPolicyRegistry<TKey> öğesini hizmet türleriyle IPolicyRegistry<TKey>kaydeder ve IReadOnlyPolicyRegistry<TKey> sağlanan kayıt defterini döndürür.
public:
[System::Runtime::CompilerServices::Extension]
static Polly::Registry::IPolicyRegistry<System::String ^> ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Polly::Registry::IPolicyRegistry<System::String ^> ^ registry);
public static Polly.Registry.IPolicyRegistry<string> AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Polly.Registry.IPolicyRegistry<string> registry);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Polly.Registry.IPolicyRegistry<string> -> Polly.Registry.IPolicyRegistry<string>
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection, registry As IPolicyRegistry(Of String)) As IPolicyRegistry(Of String)
Parametreler
- services
- IServiceCollection
- registry
- IPolicyRegistry<String>
Döndürülenler
Sağlanan IPolicyRegistry<TKey>.
Şunlara uygulanır
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>)
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<IServiceProvider ^, Polly::Registry::IPolicyRegistry<System::String ^> ^> ^ configureRegistry);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<IServiceProvider,Polly.Registry.IPolicyRegistry<string>> configureRegistry);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<IServiceProvider, Polly.Registry.IPolicyRegistry<string>> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection, configureRegistry As Action(Of IServiceProvider, IPolicyRegistry(Of String))) As IServiceCollection
Parametreler
- services
- IServiceCollection
- configureRegistry
- Action<IServiceProvider,IPolicyRegistry<String>>