你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExponentialBackoff.ShouldRetry(Int32, Exception, TimeSpan) 方法

定义

如果应根据参数重试操作,则返回 true。

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

参数

currentRetryCount
Int32

重试操作的次数。

lastException
Exception

操作异常。

retryInterval
TimeSpan

应在此时间间隔后执行下一次重试。

返回

如果应重试操作,则为 True;否则为 false。

实现

适用于