OperationRetryControl Class

Definition

Specifies the retry policy for the exceptions got on the communication from client to service.

public class OperationRetryControl
type OperationRetryControl = class
Public Class OperationRetryControl
Inheritance
System.Object
OperationRetryControl

Constructors

OperationRetryControl()

Properties

Exception

Gets or sets exception to report for the operation, if ShouldRetry is false. By default this is the same exception as the reported exception, however in some cases the Factory may choose to trasform the reported exception to a more meaningful exception.

ExceptionId

Gets or sets string that uniquely identifies the exception type.

GetRetryDelay

Gets or sets the Func to calculate the RetryDelay for specified retry Attempt.

IsTransient

Gets or sets a value indicating whether the exception is represents a transient condition. The transient retriable exceptions are those where the communication channel from client to service still exists. Non transient retriable exceptions are those where we need to re-resolve the service endpoint before we retry.

MaxRetryCount

Gets or sets max number of times this operation should be retried if the ShouldRetry is true

RetryDelay

Gets or sets the delay after which the operation should be retried if the ShouldRetry is true.

ShouldRetry

Gets or sets a value indicating whether the operation should be retried or not.

Applies to