Share via


SqlRetryLogicBase Class

Definition

Retrieves the next time interval with respect to the number of retries if a transient condition occurs.

public ref class SqlRetryLogicBase abstract : ICloneable
public abstract class SqlRetryLogicBase : ICloneable
type SqlRetryLogicBase = class
    interface ICloneable
Public MustInherit Class SqlRetryLogicBase
Implements ICloneable
Inheritance
SqlRetryLogicBase
Implements

Constructors

SqlRetryLogicBase()

Properties

Current

Current retry number starting from zero.

NumberOfTries

Maximum number of retries.

RetryIntervalEnumerator

The timer interval enumerator.

TransientPredicate

Delegate to a transient condition predicate. The function that this delegate points to must return a true value when an expected transient exception happens.

Methods

Clone()

Creates a new object that is a copy of the current instance.

Reset()

Set the counters and enumerator to default values for next use.

RetryCondition(Object)

Pre-retry validation for the sender state.

TryNextInterval(TimeSpan)

Try to get the next interval time by using the enumerator if the counter does not exceed the number of retries.

Applies to