kCura.Utility.RetryHelper
Provides access to methods for retrying a provided delegate with either failover or retry.
public static T ExecuteFunctionWithRetry<T>(Func<T> funcDelegate, int retryAttempts, int waitTime, Func<Exception, bool> isRetryableDelegate)
Executes a function with conditional retry, respecting specified parameters.
Executes a function with retry, respecting specified parameters.
public static Task<T> ExecuteFunctionWithRetryAsync<T>(Func<Task<T>> funcDelegate, int retryAttempts, int waitTime, Func<Exception, bool> isRetryableDelegate)
Asynchronously executes a function with conditional retry, respecting specified parameters.
public static Task<T> ExecuteFunctionWithRetryAsync<T>(Func<Task<T>> funcDelegate, int retryAttempts, int waitTime)
Asynchronously executes a function with retry, respecting specified parameters.
public static int ExecuteSubWithRetry(Action subDelegate, int retryAttempts, int waitTime, Func<Exception, bool> isRetryableDelegate, IRetryLogger logger)
Executes an action with conditional retry, respecting specified parameters.
public static int ExecuteSubWithRetry(Action subDelegate, int retryAttempts, int waitTime, Func<Exception, bool> isRetryableDelegate)
Executes an action with retry, respecting specified parameters.
Asynchronously executes an action with retry, respecting specified parameters.
public static Task<int> ExecuteSubWithRetryAsync(Func<Task> subDelegate, int retryAttempts, int waitTime, Func<Exception, bool> isRetryableDelegate)
Asynchronously executes an action with conditional retry, respecting specified parameters.
public static Task<int> ExecuteSubWithRetryAsync(Func<Task> subDelegate, int retryAttempts, int waitTime)
Asynchronously executes an action with retry, respecting specified parameters.