ExponentialBackoff.ShouldRetry(Int32, Exception, TimeSpan) 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.
Returns true if, based on the parameters, the operation should be retried.
public bool ShouldRetry (int currentRetryCount, Exception lastException, out TimeSpan retryInterval);
abstract member ShouldRetry : int * Exception * TimeSpan -> bool
override this.ShouldRetry : int * Exception * TimeSpan -> bool
Public Function ShouldRetry (currentRetryCount As Integer, lastException As Exception, ByRef retryInterval As TimeSpan) As Boolean
Parameters
- currentRetryCount
- Int32
How many times the operation has been retried.
- lastException
- Exception
Operation exception.
- retryInterval
- TimeSpan
Next retry should be performed after this time interval.
Returns
True if the operation should be retried, false otherwise.
Implements
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure SDK for .NET