PollyServiceCollectionExtensions.AddPolicyRegistry PollyServiceCollectionExtensions.AddPolicyRegistry PollyServiceCollectionExtensions.AddPolicyRegistry Method

Definition

Overloads

AddPolicyRegistry(IServiceCollection) AddPolicyRegistry(IServiceCollection) AddPolicyRegistry(IServiceCollection)

Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry, and Polly.Registry.IReadOnlyPolicyRegistry and returns the newly created registry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registers the provided Polly.Registry.IPolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry, and Polly.Registry.IReadOnlyPolicyRegistry and returns the provided registry.

AddPolicyRegistry(IServiceCollection) AddPolicyRegistry(IServiceCollection) AddPolicyRegistry(IServiceCollection)

Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry, and Polly.Registry.IReadOnlyPolicyRegistry and returns the newly created registry.

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)

Parameters

Returns

Polly.Registry.IPolicyRegistry<String>

The newly created Polly.Registry.PolicyRegistry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registers the provided Polly.Registry.IPolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry, and Polly.Registry.IReadOnlyPolicyRegistry and returns the provided 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)

Parameters

registry
Polly.Registry.IPolicyRegistry<String>

The Polly.Registry.IPolicyRegistry.

Returns

Polly.Registry.IPolicyRegistry<String>

The provided Polly.Registry.IPolicyRegistry.

Applies to