<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.3" />

Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator

Generates a sequence of time intervals.
public TimeSpan Current { get; protected set; }

Gets the element in the collection at the current position of the enumerator.

public TimeSpan GapTimeInterval { get; protected set; }

The default gap time of each interval.

public TimeSpan MaxTimeInterval { get; protected set; }

The maximum allowed time interval value.

public TimeSpan MinTimeInterval { get; protected set; }

The minimum allowed time interval value.

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class with a default value of zero for the gap time, minimum, and maximum interval time.

public SqlRetryIntervalBaseEnumerator(TimeSpan timeInterval, TimeSpan maxTime, TimeSpan minTime)

Initializes a new instance of the SqlRetryIntervalBaseEnumerator class.

public virtual object Clone()

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

public virtual void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected abstract TimeSpan GetNextInterval()

Calculates the next interval time.

public virtual bool MoveNext()

Advances the enumerator to the next element of the collection.

public virtual void Reset()

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.