public bool CanRetry(Exception exception, out RetryContext <TContext> retryContext) { retryContext = new ImmediateRetryContext <TContext>(_policy, Context, Exception, RetryCount + 1); return((RetryCount < _policy.RetryLimit) && _policy.Matches(exception)); }
public bool CanRetry(Exception exception, out RetryContext <TContext> retryContext) { retryContext = new ImmediateRetryContext <TContext>(_policy, _context, exception, 1); return(_policy.Matches(exception)); }