public override TimeSpan?ShouldRetry(int retryCount, Exception exception)
        {
            TestSqlException sqlException = exception as TestSqlException;

            return(sqlException != null &&
                   retryCount < RetryCount
                ? (TimeSpan?)InitialInterval.Add(TimeSpan.FromMilliseconds(IntervalDelta.TotalMilliseconds * retryCount))
                : null);
        }
Пример #2
0
 private TimeSpan?computeTimeSpan(int retryCount)
 {
     return(InitialInterval.Add(TimeSpan.FromMilliseconds(IntervalDelta.TotalMilliseconds * retryCount)));
 }
Пример #3
0
 public virtual TimeSpan?ShouldRetry(int retryCount, Exception exception)
 {
     return(retryCount < RetryCount ? (TimeSpan?)InitialInterval.Add(TimeSpan.FromMilliseconds(IntervalDelta.TotalMilliseconds * retryCount)) : null);
 }