PollyServiceCollectionExtensions.AddPolicyRegistry Methode

Definition

Überlädt

AddPolicyRegistry(IServiceCollection)

Registriert eine leere Polly.Registry.PolicyRegistry in der Dienstsammlung mit den Diensttypen Polly.Registry.IPolicyRegistry`1 und Polly.Registry.IReadOnlyPolicyRegistry`1, und gibt die neu erstellte Registrierung zurück.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>)

Registriert die bereitgestellte Polly.Registry.IPolicyRegistry`1 in der Dienstsammlung mit den Diensttypen Polly.Registry.IPolicyRegistry`1 und Polly.Registry.IReadOnlyPolicyRegistry`1, und gibt die bereitgestellte Registrierung zurück.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)

Registriert eine leere Polly.Registry.PolicyRegistry in der Dienstsammlung mit den Diensttypen Polly.Registry.IPolicyRegistry`1 und Polly.Registry.IReadOnlyPolicyRegistry`1, und gibt die neu erstellte Registrierung zurück.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)

Parameter

Gibt zurück

Polly.Registry.IPolicyRegistry<String>

Der neu erstellte Polly.Registry.PolicyRegistry.The newly created Polly.Registry.PolicyRegistry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registriert die bereitgestellte Polly.Registry.IPolicyRegistry`1 in der Dienstsammlung mit den Diensttypen Polly.Registry.IPolicyRegistry`1 und Polly.Registry.IReadOnlyPolicyRegistry`1, und gibt die bereitgestellte Registrierung zurück.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)

Parameter

registry
Polly.Registry.IPolicyRegistry<String>

Das Polly.Registry.IPolicyRegistry`1.The Polly.Registry.IPolicyRegistry`1.

Gibt zurück

Polly.Registry.IPolicyRegistry<String>

Die bereitgestellte Polly.Registry.IPolicyRegistry`1.The provided Polly.Registry.IPolicyRegistry`1.

Gilt für: