示例#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);
        }
示例#2
0
 public RetryManager(RetryWaitTimer waitTimer, int maxRetries)
     : this(waitTimer, maxRetries, Timeout.Infinite)
 {
 }
示例#3
0
 public RetryManager(RetryWaitTimer waitTimer)
     : this(waitTimer, InfiniteRetries)
 {
 }