DbExecutionStrategy.GetNextDelay Method (Exception)

 

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

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

protected internal virtual Nullable<TimeSpan> GetNextDelay(
	Exception lastException
)

Parameters

lastException
Type: System.Exception

The exception thrown during the last execution attempt.

Return Value

Type: System.Nullable<TimeSpan>

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