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

RetryPolicy 类

定义

public class RetryPolicy
type RetryPolicy = class
Public Class RetryPolicy
继承
RetryPolicy
派生

构造函数

RetryPolicy(ITransientErrorDetectionStrategy, Int32)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan)
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan, TimeSpan)
RetryPolicy(ITransientErrorDetectionStrategy, RetryStrategy)

属性

ErrorDetectionStrategy
EventCallbackCount
RetryStrategy

方法

ExecuteAction(Action)
ExecuteAction<TResult>(Func<TResult>)
ExecuteAsync(Func<Task>)
ExecuteAsync(Func<Task>, CancellationToken)
ExecuteAsync<TResult>(Func<Task<TResult>>)
ExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken)
OnRetrying(Int32, Exception, TimeSpan)

事件

Retrying

适用于