コード例 #1
0
 protected string AttemptInfo(PerformContext context, IPerformContextAdapter adapter)
 {
     return($"{CurrentAttempt(context, adapter)}/{JobConfiguration.Attempts(Env)}");
 }
コード例 #2
0
        protected bool IsLastAttempt(PerformContext context, IPerformContextAdapter adapter)
        {
            var currentAttempt = CurrentAttempt(context, adapter);

            return(currentAttempt >= JobConfiguration.Attempts(Env));
        }