ExecutionStrategy.GetNextDelay(Exception) Method
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.
Determines whether the operation should be retried and the delay before the next attempt.
protected virtual TimeSpan? GetNextDelay (Exception lastException);
abstract member GetNextDelay : Exception -> Nullable<TimeSpan>
override this.GetNextDelay : Exception -> Nullable<TimeSpan>
Protected Overridable 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
Remarks
See Connection resiliency and database retries for more information and examples.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework