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

ExceptionHandlingRetryResult 类

定义

指定可以重试从客户端到服务的请求时异常处理结果

public sealed class ExceptionHandlingRetryResult : Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingResult
type ExceptionHandlingRetryResult = class
    inherit ExceptionHandlingResult
Public NotInheritable Class ExceptionHandlingRetryResult
Inherits ExceptionHandlingResult
继承
ExceptionHandlingRetryResult

构造函数

ExceptionHandlingRetryResult(Exception, Boolean, OperationRetrySettings, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

ExceptionHandlingRetryResult(Exception, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

ExceptionHandlingRetryResult(String, Boolean, TimeSpan, Int32)

初始化 ExceptionHandlingRetryResult 类的新实例。

属性

ExceptionId

获取唯一标识异常类型的字符串。

IsTransient

获取一个值,该值指示异常是否表示暂时性条件。 暂时性可重试异常是客户端到服务的通信通道仍然存在的异常。 非暂时性可重试异常是我们需要在重试之前重新解析服务终结点的异常。

MaxRetryCount

获取放弃之前需要重试此异常类型的最大次数。 默认值为 int。MaxValue

RetryDelay

获取应重试操作的时间间隔。

方法

GetRetryDelay(Int32)

获取应重试操作的时间间隔。

适用于