Example #1
0
 public static void Invoke(TimeSpan slowResponseTime, TimeSpan sleepInterval, int maxRetryCount, Action retryableAction, Predicate <Exception> isRetriableException, Action <Exception, int> onRetry, Action <Exception, int> onMaxRetry, Action <TimeSpan> onSlowResponse, Action <Exception> onUnhandledException)
 {
     RetryHelper.Invoke(slowResponseTime, sleepInterval, maxRetryCount, retryableAction, isRetriableException, onRetry, onMaxRetry, onSlowResponse, onUnhandledException, RetryHelper.DefaultIsStoreUnavailablePredicate);
 }
Example #2
0
 public static T Invoke <T>(TimeSpan slowResponseTime, TimeSpan sleepInterval, int maxRetryCount, Func <T> action, Predicate <Exception> isRetriableException, Action <Exception, int> onRetry, Action <Exception, int> onMaxRetry, Action <TimeSpan> onSlowResponse, Action <Exception> onUnhandledException)
 {
     return(RetryHelper.Invoke <T>(slowResponseTime, sleepInterval, maxRetryCount, action, isRetriableException, onRetry, onMaxRetry, onSlowResponse, onUnhandledException, RetryHelper.DefaultIsStoreUnavailablePredicate));
 }