SqlRetryLogicBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |