예제 #1
0
 public EchelonTaskOptions(
     EchelonRetryStrategy retryStrategy,
     int retryDelaySeconds,
     int maxAttempts         = 5,
     int initialDelaySeconds = 0,
     int timeToLiveSeconds   = -1,
     int priority            = 0)
     : this(
         new[] { new EchelonRetry(retryStrategy, retryDelaySeconds, maxAttempts) },
         maxAttempts,
         initialDelaySeconds,
         timeToLiveSeconds,
         priority)
 {
 }
 public EchelonRetry(EchelonRetryStrategy retryStrategy, int baseDelaySeconds, int attemptsCount)
 {
     AttemptsCount    = attemptsCount;
     RetryStrategy    = retryStrategy;
     BaseDelaySeconds = baseDelaySeconds;
 }