AsyncExecutorWithRetries 类

定义

此类是一个方便的实用工具类,用于通过重试执行特定异步函数,从而允许指定自定义重试筛选器和策略。

public static class AsyncExecutorWithRetries
type AsyncExecutorWithRetries = class
Public Class AsyncExecutorWithRetries
继承
AsyncExecutorWithRetries

字段

INFINITE_RETRIES

用于请求无限次重试的常量。

方法

ExecuteWithRetries(Func<Int32,Task>, Int32, Func<Exception,Int32,Boolean>, TimeSpan, IBackoffProvider)

根据重试配置参数多次执行给定函数。

ExecuteWithRetries<T>(Func<Int32,Task<T>>, Int32, Func<Exception,Int32,Boolean>, TimeSpan, IBackoffProvider)

根据重试配置参数多次执行给定函数。

ExecuteWithRetries<T>(Func<Int32,Task<T>>, Int32, Int32, Func<T, Int32,Boolean>, Func<Exception,Int32,Boolean>, TimeSpan, IBackoffProvider, IBackoffProvider)

根据重试配置参数执行给定 function 的次数。

适用于