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

ExceptionHandlingRetryResult 构造函数

定义

重载

ExceptionHandlingRetryResult(Exception, Boolean, OperationRetrySettings, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

ExceptionHandlingRetryResult(Exception, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

ExceptionHandlingRetryResult(String, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

ExceptionHandlingRetryResult(Exception, Boolean, OperationRetrySettings, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

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)

参数

exception
Exception

需要重试的异常。

isTransient
Boolean

指示这是否是暂时性可重试异常。 暂时性可重试的异常是客户端到服务的信道仍然存在的异常。 非暂时性可重试异常是我们需要在重试之前重新解析服务终结点的异常。

retrySettings
OperationRetrySettings

计算出重试前等待的间隔的 retrySettings。

maxRetryCount
Int32

需要重试 exceptionId 参数标识的异常的最大次数。

适用于

ExceptionHandlingRetryResult(Exception, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

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)

参数

exception
Exception

需要重试的异常。

isTransient
Boolean

指示这是否是暂时性可重试异常。 暂时性可重试的异常是客户端到服务的信道仍然存在的异常。 非暂时性可重试异常是我们需要在重试之前重新解析服务终结点的异常。

retryDelay
TimeSpan

重试前等待的间隔

maxRetryCount
Int32

异常参数中给定的异常需要重试的最大次数。

适用于

ExceptionHandlingRetryResult(String, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

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)

参数

exceptionId
String

需要重试的异常的标识符。

isTransient
Boolean

指示这是否是暂时性可重试异常。 暂时性可重试的异常是客户端到服务的信道仍然存在的异常。 非暂时性可重试异常是我们需要在重试之前重新解析服务终结点的异常。

retryDelay
TimeSpan

重试前等待的间隔

maxRetryCount
Int32

需要重试 exceptionId 参数标识的异常的最大次数。

适用于