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

RetryPolicy<T> 类

定义

public class RetryPolicy<T> : Microsoft.Rest.TransientFaultHandling.RetryPolicy where T : ITransientErrorDetectionStrategy, new()
type RetryPolicy<'T (requires 'T :> ITransientErrorDetectionStrategy and 'T : (new : unit -> 'T))> = class
    inherit RetryPolicy
Public Class RetryPolicy(Of T)
Inherits RetryPolicy

类型参数

T
继承
RetryPolicy<T>

构造函数

RetryPolicy<T>(Int32)
RetryPolicy<T>(Int32, TimeSpan)
RetryPolicy<T>(Int32, TimeSpan, TimeSpan)
RetryPolicy<T>(Int32, TimeSpan, TimeSpan, TimeSpan)
RetryPolicy<T>(RetryStrategy)

属性

ErrorDetectionStrategy (继承自 RetryPolicy)
EventCallbackCount (继承自 RetryPolicy)
RetryStrategy (继承自 RetryPolicy)

方法

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

事件

Retrying (继承自 RetryPolicy)

适用于