Rsft.EntLib.TransientFaultHandling.Standard by Rolosoft Ltd

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

 RetryStrategy

public abstract class RetryStrategy
Represents a retry strategy that determines the number of retry attempts and the interval between retries.
public static readonly TimeSpan DefaultClientBackoff

Represents the default amount of time used when calculating a random delta in the exponential delay between retries.

public static readonly int DefaultClientRetryCount

Represents the default number of retry attempts.

public static readonly bool DefaultFirstFastRetry

Represents the default flag indicating whether the first retry attempt will be made immediately, whereas subsequent retries will remain subject to the retry interval.

public static readonly TimeSpan DefaultMaxBackoff

Represents the default maximum amount of time used when calculating the exponential delay between retries.

public static readonly TimeSpan DefaultMinBackoff

Represents the default minimum amount of time used when calculating the exponential delay between retries.

public static readonly TimeSpan DefaultRetryIncrement

Represents the default time increment between retry attempts in the progressive delay policy.

public static readonly TimeSpan DefaultRetryInterval

Represents the default interval between retries.

public static RetryStrategy DefaultExponential { get; }

Returns a default policy that implements a random exponential retry interval configured with the DefaultClientRetryCount, DefaultMinBackoff, DefaultMaxBackoff, and DefaultClientBackoff parameters. The default retry policy treats all caught exceptions as transient errors.

public static RetryStrategy DefaultFixed { get; }

Returns a default policy that implements a fixed retry interval configured with the DefaultClientRetryCount and DefaultRetryInterval parameters. The default retry policy treats all caught exceptions as transient errors.

public static RetryStrategy DefaultProgressive { get; }

Returns a default policy that implements a progressive retry interval configured with the DefaultClientRetryCount, DefaultRetryInterval, and DefaultRetryIncrement parameters. The default retry policy treats all caught exceptions as transient errors.

public static RetryStrategy NoRetry { get; }

Returns a default policy that performs no retries, but invokes the action only once.

public bool FastFirstRetry { get; set; }

Gets or sets a value indicating whether the first retry attempt will be made immediately, whereas subsequent retries will remain subject to the retry interval.

public string Name { get; }

Gets the name of the retry strategy.

protected RetryStrategy(string name, bool firstFastRetry)

Initializes a new instance of the RetryStrategy class.

public abstract ShouldRetry GetShouldRetry()

Returns the corresponding ShouldRetry delegate.