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

ExponentialRetry 类

定义

表示执行指定次数的重试的重试策略,该策略使用随机化的指数退让方案来确定重试间隔。

public sealed class ExponentialRetry : Microsoft.Azure.Storage.RetryPolicies.IExtendedRetryPolicy
type ExponentialRetry = class
    interface IExtendedRetryPolicy
    interface IRetryPolicy
Public NotInheritable Class ExponentialRetry
Implements IExtendedRetryPolicy
继承
ExponentialRetry
实现

构造函数

ExponentialRetry()

初始化 ExponentialRetry 类的新实例。

ExponentialRetry(TimeSpan, Int32)

使用指定的增量和最大重试次数初始化 ExponentialRetry 类的新实例。

方法

CreateInstance()

生成当前请求尝试的新重试策略。

Evaluate(RetryContext, OperationContext)

确定是否应重试操作,以及与下次重试的间隔。

ShouldRetry(Int32, Int32, Exception, TimeSpan, OperationContext)

确定是否应重试操作,以及与下次重试的间隔。

适用于