Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator
public abstract class SqlRetryIntervalBaseEnumerator : IEnumerator<TimeSpan>, IDisposable, IEnumerator, ICloneable
Generates a sequence of time intervals.
Gets the element in the collection at the current position of the enumerator.
The default gap time of each interval.
The maximum allowed time interval value.
The minimum allowed time interval value.
public SqlRetryIntervalBaseEnumerator()
Initializes a new instance of the SqlRetryIntervalBaseEnumerator class with a default value of zero for the gap time, minimum, and maximum interval time.
Initializes a new instance of the SqlRetryIntervalBaseEnumerator class.
Creates a new object that is a copy of the current instance.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Calculates the next interval time.
Advances the enumerator to the next element of the collection.
Sets the enumerator to its initial position, which is before the first element in the collection.
protected virtual void Validate(TimeSpan timeInterval, TimeSpan maxTimeInterval, TimeSpan minTimeInterval)
Validate the enumeration parameters.