Rsft.EntLib.TransientFaultHandling.Standard by Rolosoft Ltd

<PackageReference Include="Rsft.EntLib.TransientFaultHandling.Standard" Version="7.0.0" />

 RetryManager

public class RetryManager
Provides the entry point to the retry functionality.
public static RetryManager Instance { get; }

Gets the default RetryManager for the application.

public string DefaultRetryStrategyName { get; set; }

Gets or sets the default retry strategy name.

public RetryManager(IEnumerable<RetryStrategy> retryStrategies)

Initializes a new instance of the RetryManager class.

public RetryManager(IEnumerable<RetryStrategy> retryStrategies, string defaultRetryStrategyName)

Initializes a new instance of the RetryManager class with the specified retry strategies and default retry strategy name.

public RetryManager(IEnumerable<RetryStrategy> retryStrategies, string defaultRetryStrategyName, IDictionary<string, string> defaultRetryStrategyNamesMap)

Initializes a new instance of the RetryManager class with the specified retry strategies and defaults.

public static void SetDefault(RetryManager retryManager, bool throwIfSet = true)

Sets the specified retry manager as the default retry manager.

public virtual RetryStrategy GetDefaultRetryStrategy(string technology)

Returns the retry strategy for the specified technology.

Returns a retry policy with the specified error detection strategy and the default retry strategy defined in the configuration.

public virtual RetryPolicy<T> GetRetryPolicy<T>(string retryStrategyName) where T : ITransientErrorDetectionStrategy

Returns a retry policy with the specified error detection strategy and retry strategy.

Returns the default retry strategy defined in the configuration.

public virtual RetryStrategy GetRetryStrategy(string retryStrategyName)

Returns the retry strategy that matches the specified name.