Share via


SqlServerRetryingExecutionStrategy.GetNextDelay(Exception) Method

Definition

Determines whether the operation should be retried and the delay before the next attempt.

protected override TimeSpan? GetNextDelay (Exception lastException);
override this.GetNextDelay : Exception -> Nullable<TimeSpan>
Protected Overrides Function GetNextDelay (lastException As Exception) As Nullable(Of TimeSpan)

Parameters

lastException
Exception

The exception thrown during the last execution attempt.

Returns

Returns the delay indicating how long to wait for before the next execution attempt if the operation should be retried; null otherwise

Applies to