다음을 통해 공유


ConstantRetryPolicy(TimeSpan, TimeSpan, Int32, Int32, TimeSpan) Constructor

Definition

Initializes a new instance of the ConstantRetryPolicy class with the supplied settings.

public ConstantRetryPolicy (TimeSpan maxRetryBackoffIntervalOnTransientErrors, TimeSpan maxRetryBackoffIntervalOnNonTransientErrors, int maxRetryCount, int maxRetryCountOnNonTransientErrors, TimeSpan clientRetryTimeout);
new Microsoft.ServiceFabric.Services.Communication.Client.ConstantRetryPolicy : TimeSpan * TimeSpan * int * int * TimeSpan -> Microsoft.ServiceFabric.Services.Communication.Client.ConstantRetryPolicy
Public Sub New (maxRetryBackoffIntervalOnTransientErrors As TimeSpan, maxRetryBackoffIntervalOnNonTransientErrors As TimeSpan, maxRetryCount As Integer, maxRetryCountOnNonTransientErrors As Integer, clientRetryTimeout As TimeSpan)

Parameters

maxRetryBackoffIntervalOnTransientErrors
TimeSpan

Specifies the maximum interval to back-off before retrying incase of Transient errors

maxRetryBackoffIntervalOnNonTransientErrors
TimeSpan

Specifies the maximum interval to back-off before retrying incase of Non transient errors

maxRetryCount
Int32

Specifies the maximum number of times to retry.

maxRetryCountOnNonTransientErrors
Int32

Specifies the max number of times to retry On Non-Transient Errors

clientRetryTimeout
TimeSpan

Specifies the maximum time client retries the call before quitting

Applies to