PollyServiceCollectionExtensions.AddPolicyRegistry Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddPolicyRegistry(IServiceCollection) |
Inscrit un PolicyRegistry vide dans la collection de services avec les types de services IPolicyRegistry<TKey> et IReadOnlyPolicyRegistry<TKey>, puis retourne le registre nouvellement créé. |
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) |
Inscrit le IPolicyRegistry<TKey> fourni dans la collection de services avec les types de services IPolicyRegistry<TKey> et IReadOnlyPolicyRegistry<TKey>, puis retourne le registre fourni. |
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>) |
AddPolicyRegistry(IServiceCollection)
Inscrit un PolicyRegistry vide dans la collection de services avec les types de services IPolicyRegistry<TKey> et IReadOnlyPolicyRegistry<TKey>, puis retourne le registre nouvellement créé.
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)
Paramètres
- services
- IServiceCollection
Retours
Objet PolicyRegistry nouvellement créé.
S’applique à
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
Inscrit le IPolicyRegistry<TKey> fourni dans la collection de services avec les types de services IPolicyRegistry<TKey> et IReadOnlyPolicyRegistry<TKey>, puis retourne le registre fourni.
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)
Paramètres
- services
- IServiceCollection
L’IServiceCollectionopérateur
- registry
- IPolicyRegistry<String>
L’IPolicyRegistry<TKey>opérateur
Retours
Le IPolicyRegistry<TKey> fourni.
S’applique à
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
Paramètres
- services
- IServiceCollection
- configureRegistry
- Action<IServiceProvider,IPolicyRegistry<String>>