共用方式為


OperationRetrySettings Class

Definition

Specifies the policy for retrying requests on exceptions in the communication channel between client and service replicas.

public sealed class OperationRetrySettings
type OperationRetrySettings = class
Public NotInheritable Class OperationRetrySettings
Inheritance
OperationRetrySettings

Constructors

OperationRetrySettings()

Initializes a new instance of the OperationRetrySettings class with default values for the retry settings. The default value for MaxRetryCount is 10. Default Value for ClientRetryTimeout is infinite which means indefinte retry for non-transient errors.

OperationRetrySettings(IRetryPolicy)

Initializes a new instance of the OperationRetrySettings class with the retry Policy supplied.

OperationRetrySettings(TimeSpan, TimeSpan, Int32, Int32)

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

OperationRetrySettings(TimeSpan)

Initializes a new instance of the OperationRetrySettings class The default value for MaxRetryCount is 10 .

Properties

ClientRetryTimeout

Gets the timeout for the client side retry. If you specify ClientRetryTimeout, cancellation token, and use MaxRetryCount for Exception Handling, then whichever will be come first, will be honoured. ClientRetryTimeout is useful in the cases where communication between client and service is not working and calls are getting retried. In those cases, you can use this timeout to come out of the retry loop.

DefaultMaxRetryCountForNonTransientErrors

Gets the maximum number of times to retry for non -transient errors.

DefaultMaxRetryCountForTransientErrors

Gets the maximum number of times to retry for transient errors.

MaxRetryBackoffIntervalOnNonTransientErrors

Gets the maximum interval to back-off before retrying in-case of Non transient errors

MaxRetryBackoffIntervalOnTransientErrors

Gets the maximum interval to back-off before retrying in-case of Transient errors

RetryPolicy

Gets the Retry Policy to be used for the communication between client and service.

Applies to