PollyServiceCollectionExtensions.AddPolicyRegistry Metodo

Definizione

Overload

AddPolicyRegistry(IServiceCollection)

Registra un oggetto Polly.Registry.PolicyRegistry vuoto nella raccolta di servizi con i tipi di servizio Polly.Registry.IPolicyRegistry`1 e Polly.Registry.IReadOnlyPolicyRegistry`1 e restituisce il nuovo registro creato.Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the newly created registry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registra l'oggetto Polly.Registry.IPolicyRegistry`1 fornito nella raccolta di servizi con i tipi di servizio Polly.Registry.IPolicyRegistry`1 e Polly.Registry.IReadOnlyPolicyRegistry`1 e restituisce il registro fornito.Registers the provided Polly.Registry.IPolicyRegistry`1 in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the provided registry.

AddPolicyRegistry(IServiceCollection)

Registra un oggetto Polly.Registry.PolicyRegistry vuoto nella raccolta di servizi con i tipi di servizio Polly.Registry.IPolicyRegistry`1 e Polly.Registry.IReadOnlyPolicyRegistry`1 e restituisce il nuovo registro creato.Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the newly created registry.

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

Restituisce

Polly.Registry.IPolicyRegistry<String>

Oggetto Polly.Registry.PolicyRegistry appena creato.The newly created Polly.Registry.PolicyRegistry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registra l'oggetto Polly.Registry.IPolicyRegistry`1 fornito nella raccolta di servizi con i tipi di servizio Polly.Registry.IPolicyRegistry`1 e Polly.Registry.IReadOnlyPolicyRegistry`1 e restituisce il registro fornito.Registers the provided Polly.Registry.IPolicyRegistry`1 in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the provided registry.

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

registry
Polly.Registry.IPolicyRegistry<String>

Oggetto Polly.Registry.IPolicyRegistry`1.The Polly.Registry.IPolicyRegistry`1.

Restituisce

Polly.Registry.IPolicyRegistry<String>

Oggetto Polly.Registry.IPolicyRegistry`1 fornito.The provided Polly.Registry.IPolicyRegistry`1.

Si applica a