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

ExponentialRetryPolicy(Int32, TimeSpan) 构造函数

定义

使用提供的设置初始化 类的新实例 ExponentialRetryPolicy 。 和其他重试设置的默认值。 maxRetryJitterForTransientErrors、maxRetryJitterForNonTransientErrors 的默认值为 2 秒。 MaxRetryCount 的默认值为 10。

public ExponentialRetryPolicy (int defaultMaxRetryCount, TimeSpan clientRetryTimeout);
new Microsoft.ServiceFabric.Services.Communication.Client.ExponentialRetryPolicy : int * TimeSpan -> Microsoft.ServiceFabric.Services.Communication.Client.ExponentialRetryPolicy
Public Sub New (defaultMaxRetryCount As Integer, clientRetryTimeout As TimeSpan)

参数

defaultMaxRetryCount
Int32

指定重试的最大次数。

clientRetryTimeout
TimeSpan

指定客户端重试逻辑的最大超时

适用于