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);
        }
Beispiel #2
0
 private TimeSpan?computeTimeSpan(int retryCount)
 {
     return(InitialInterval.Add(TimeSpan.FromMilliseconds(IntervalDelta.TotalMilliseconds * retryCount)));
 }
 public virtual TimeSpan?ShouldRetry(int retryCount, Exception exception)
 {
     return(retryCount < RetryCount ? (TimeSpan?)InitialInterval.Add(TimeSpan.FromMilliseconds(IntervalDelta.TotalMilliseconds * retryCount)) : null);
 }