Example #1
0
        public RetryManager(RetryWaitTimer waitTimer, int maxRetries, int totalTimeLimit)
        {
            if (waitTimer == null)
            {
                throw new ArgumentNullException(nameof(waitTimer));
            }

            this.waitTimer = waitTimer;

            this.SetMaxRetries(maxRetries);
            this.SetTotalTimeLimit(totalTimeLimit);
        }
Example #2
0
 public RetryManager(RetryWaitTimer waitTimer, int maxRetries)
     : this(waitTimer, maxRetries, Timeout.Infinite)
 {
 }
Example #3
0
 public RetryManager(RetryWaitTimer waitTimer)
     : this(waitTimer, InfiniteRetries)
 {
 }