Esempio n. 1
0
 public static bool HasMaxAttemptsReached(RetryConfigurationBase configuration, int currentAttempt) =>
 configuration.HasMaxAttemptsReached(currentAttempt);
Esempio n. 2
0
 public static bool ShouldExecute(TryResult tryResult, RetryConfigurationBase configuration, int currentAttempt, CancellationToken token) =>
 !token.IsCancellationRequested && !tryResult.IsSucceeded && !configuration.HasMaxAttemptsReached(currentAttempt);