PollyServiceCollectionExtensions PollyServiceCollectionExtensions PollyServiceCollectionExtensions Class

Definition

Provides convenience extension methods to register Polly.Registry.IPolicyRegistry and Polly.Registry.IReadOnlyPolicyRegistry in the service collection.

public static class PollyServiceCollectionExtensions
type PollyServiceCollectionExtensions = class
Public Module PollyServiceCollectionExtensions
Inheritance
PollyServiceCollectionExtensionsPollyServiceCollectionExtensionsPollyServiceCollectionExtensions

Methods

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.

Applies to