PollyServiceCollectionExtensions.AddPolicyRegistry Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddPolicyRegistry(IServiceCollection) |
Registra un oggetto PolicyRegistry vuoto nella raccolta di servizi con i tipi di servizio IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e restituisce il nuovo registro creato. |
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) |
Registra l'oggetto IPolicyRegistry<TKey> fornito nella raccolta di servizi con i tipi di servizio IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e restituisce il registro fornito. |
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>) |
AddPolicyRegistry(IServiceCollection)
Registra un oggetto PolicyRegistry vuoto nella raccolta di servizi con i tipi di servizio IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e restituisce il nuovo registro creato.
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)
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection.
Restituisce
Oggetto PolicyRegistry appena creato.
Si applica a
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
Registra l'oggetto IPolicyRegistry<TKey> fornito nella raccolta di servizi con i tipi di servizio IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e restituisce il registro fornito.
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)
Parametri
- services
- IServiceCollection
Oggetto IServiceCollection.
- registry
- IPolicyRegistry<String>
Oggetto IPolicyRegistry<TKey>.
Restituisce
Oggetto IPolicyRegistry<TKey> fornito.
Si applica a
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
Parametri
- services
- IServiceCollection
- configureRegistry
- Action<IServiceProvider,IPolicyRegistry<String>>