PollyServiceCollectionExtensions.AddPolicyRegistry Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
AddPolicyRegistry(IServiceCollection) |
Zaregistruje prázdnou PolicyRegistry položku v kolekci služeb s typy IPolicyRegistry<TKey>služeb a IReadOnlyPolicyRegistry<TKey> vrátí nově vytvořený registr. |
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) |
Zaregistruje zadaný IPolicyRegistry<TKey> v kolekci služeb s typy IPolicyRegistry<TKey>služeb a IReadOnlyPolicyRegistry<TKey> vrátí zadaný registr. |
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>) |
AddPolicyRegistry(IServiceCollection)
Zaregistruje prázdnou PolicyRegistry položku v kolekci služeb s typy IPolicyRegistry<TKey>služeb a IReadOnlyPolicyRegistry<TKey> vrátí nově vytvořený registr.
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)
Parametry
- services
- IServiceCollection
Hodnota IServiceCollection
Návraty
Nově vytvořená položka PolicyRegistry.
Platí pro
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
Zaregistruje zadaný IPolicyRegistry<TKey> v kolekci služeb s typy IPolicyRegistry<TKey>služeb a IReadOnlyPolicyRegistry<TKey> vrátí zadaný registr.
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)
Parametry
- services
- IServiceCollection
Hodnota IServiceCollection
- registry
- IPolicyRegistry<String>
Hodnota IPolicyRegistry<TKey>
Návraty
Poskytnutý IPolicyRegistry<TKey>soubor .
Platí pro
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
Parametry
- services
- IServiceCollection
- configureRegistry
- Action<IServiceProvider,IPolicyRegistry<String>>