AsyncExecutorWithRetries
class
Namespace: Orleans.Internal
This class is a convenient utility class to execute a certain asynchronous function with retries, allowing to specify custom retry filters and policies.
public static class AsyncExecutorWithRetriesMethods
ExecuteWithRetries(Func<int, Task>, int, Func<Exception, int, bool>, TimeSpan, IBackoffProvider)Execute a given function a number of times, based on retry configuration parameters.ExecuteWithRetries(Func<int, Task<T>>, int, Func<Exception, int, bool>, TimeSpan, IBackoffProvider, CancellationToken)Execute a given function a number of times, based on retry configuration parameters.ExecuteWithRetries(Func<int, Task<T>>, int, int, Func<T, int, bool>, Func<Exception, int, bool>, TimeSpan, IBackoffProvider, IBackoffProvider, CancellationToken)Execute a givenfunctiona number of times, based on retry configuration parameters.
Fields
INFINITE_RETRIESConstant used to request an infinite number of retries.
