Bewerken

Delen via


AsyncExecutorWithRetries Class

Definition

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 AsyncExecutorWithRetries
type AsyncExecutorWithRetries = class
Public Class AsyncExecutorWithRetries
Inheritance
AsyncExecutorWithRetries

Fields

INFINITE_RETRIES

Constant used to request an infinite number of retries.

Methods

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

Execute a given function a number of times, based on retry configuration parameters.

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

Execute a given function a number of times, based on retry configuration parameters.

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

Execute a given function a number of times, based on retry configuration parameters.

Applies to