共用方式為


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 次數。

適用於