Udostępnij za pośrednictwem


ExceptionHandlingRetryResult Constructors

Definition

Overloads

ExceptionHandlingRetryResult(Exception, Boolean, OperationRetrySettings, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

ExceptionHandlingRetryResult(Exception, Boolean, TimeSpan, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

ExceptionHandlingRetryResult(String, Boolean, TimeSpan, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

ExceptionHandlingRetryResult(Exception, Boolean, OperationRetrySettings, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

public ExceptionHandlingRetryResult (Exception exception, bool isTransient, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings, int maxRetryCount);
new Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult : Exception * bool * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * int -> Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult
Public Sub New (exception As Exception, isTransient As Boolean, retrySettings As OperationRetrySettings, maxRetryCount As Integer)

Parameters

exception
Exception

The exception that needs to be retried.

isTransient
Boolean

Indicates if this is a transient retriable exception. 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.

retrySettings
OperationRetrySettings

The retrySettings from which the interval to wait before retrying is figured out.

maxRetryCount
Int32

The maximum number of times the exception identified by the exceptionId parameter needs to be retried for.

Applies to

ExceptionHandlingRetryResult(Exception, Boolean, TimeSpan, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

public ExceptionHandlingRetryResult (Exception exception, bool isTransient, TimeSpan retryDelay, int maxRetryCount);
new Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult : Exception * bool * TimeSpan * int -> Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult
Public Sub New (exception As Exception, isTransient As Boolean, retryDelay As TimeSpan, maxRetryCount As Integer)

Parameters

exception
Exception

The exception that needs to be retried.

isTransient
Boolean

Indicates if this is a transient retriable exception. 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.

retryDelay
TimeSpan

The interval to wait before retrying

maxRetryCount
Int32

The maximum number of times the exception given in the exception parameter needs to be retried for.

Applies to

ExceptionHandlingRetryResult(String, Boolean, TimeSpan, Int32)

Initializes a new instance of the ExceptionHandlingRetryResult class.

public ExceptionHandlingRetryResult (string exceptionId, bool isTransient, TimeSpan retryDelay, int maxRetryCount);
new Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult : string * bool * TimeSpan * int -> Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingRetryResult
Public Sub New (exceptionId As String, isTransient As Boolean, retryDelay As TimeSpan, maxRetryCount As Integer)

Parameters

exceptionId
String

An identifier for the exception that needs to be retried.

isTransient
Boolean

Indicates if this is a transient retriable exception. 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.

retryDelay
TimeSpan

The interval to wait before retrying

maxRetryCount
Int32

The maximum number of times the exception identified by the exceptionId parameter needs to be retried for.

Applies to