PollyServiceCollectionExtensions.AddPolicyRegistry Methode

Definition

Überlädt

AddPolicyRegistry(IServiceCollection)

Registriert eine leere PolicyRegistry in der Dienstsammlung mit den Diensttypen IPolicyRegistry<TKey> und IReadOnlyPolicyRegistry<TKey>, und gibt die neu erstellte Registrierung zurück.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registriert die bereitgestellte IPolicyRegistry<TKey> in der Dienstsammlung mit den Diensttypen IPolicyRegistry<TKey> und IReadOnlyPolicyRegistry<TKey>, und gibt die bereitgestellte Registrierung zurück.

AddPolicyRegistry(IServiceCollection)

Registriert eine leere PolicyRegistry in der Dienstsammlung mit den Diensttypen IPolicyRegistry<TKey> und IReadOnlyPolicyRegistry<TKey>, und gibt die neu erstellte Registrierung zurück.

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

Der neu erstellte PolicyRegistry.

Gilt für:

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registriert die bereitgestellte IPolicyRegistry<TKey> in der Dienstsammlung mit den Diensttypen IPolicyRegistry<TKey> und IReadOnlyPolicyRegistry<TKey>, und gibt die bereitgestellte Registrierung zurück.

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

Gibt zurück

Die bereitgestellte IPolicyRegistry<TKey>.

Gilt für: