public RetryPolicySettings()
        {
            _sleepDurationProvider = SleepDurationProvider.Jitter(
                Defaults.Retry.RetryCount,
                TimeSpan.FromMilliseconds(Defaults.Retry.MedianFirstRetryDelayInMilliseconds));

            OnRetry = DoNothingOnRetry;
        }
 public static RetryPolicySettings Jitter(int retryCount, TimeSpan medianFirstRetryDelay)
 {
     return(new RetryPolicySettings(
                SleepDurationProvider.Jitter(retryCount, medianFirstRetryDelay)));
 }
 public RetryPolicySettings()
     : this(SleepDurationProvider.Jitter(
                Defaults.Retry.RetryCount,
                TimeSpan.FromMilliseconds(Defaults.Retry.MedianFirstRetryDelayInMilliseconds)))
 {
 }