コード例 #1
0
ファイル: RetryBotUtils.cs プロジェクト: crazyants/trybot
 public static bool HasMaxAttemptsReached(RetryConfigurationBase configuration, int currentAttempt) =>
 configuration.HasMaxAttemptsReached(currentAttempt);
コード例 #2
0
ファイル: RetryBotUtils.cs プロジェクト: crazyants/trybot
 public static bool ShouldExecute(TryResult tryResult, RetryConfigurationBase configuration, int currentAttempt, CancellationToken token) =>
 !token.IsCancellationRequested && !tryResult.IsSucceeded && !configuration.HasMaxAttemptsReached(currentAttempt);