static bool ShouldRetryForSqlError(int error, RetryErrorOptions retryErrorOptions)
 {
     if (Transaction.Current != null)
     {
         retryErrorOptions |= RetryErrorOptions.RetryWhenTransaction;
     }
     return(SqlCommandAsyncResult.retryErrorCodes.Any(x => x.ErrorCode == error && (x.RetryErrorOptions & retryErrorOptions) == retryErrorOptions));
 }
 private static bool ShouldRetryForSqlError(int error, RetryErrorOptions retryErrorOptions)
 {
     if (Transaction.Current != null)
     {
         retryErrorOptions |= RetryErrorOptions.RetryWhenTransaction;
     }
     return(retryErrorCodes.Any <RetryErrorCode>(x => ((x.ErrorCode == error) && ((x.RetryErrorOptions & retryErrorOptions) == retryErrorOptions))));
 }
 public RetryErrorCode(int code, RetryErrorOptions retryErrorOptions)
 {
     this.ErrorCode = code;
     this.RetryErrorOptions = retryErrorOptions;
 }
 static bool ShouldRetryForSqlError(int error, RetryErrorOptions retryErrorOptions)
 {
     if (Transaction.Current != null)
     {
         retryErrorOptions |= RetryErrorOptions.RetryWhenTransaction;
     }
     return SqlCommandAsyncResult.retryErrorCodes.Any(x => x.ErrorCode == error && (x.RetryErrorOptions & retryErrorOptions) == retryErrorOptions);
 }
 private static bool ShouldRetryForSqlError(int error, RetryErrorOptions retryErrorOptions)
 {
     if (Transaction.Current != null)
     {
         retryErrorOptions |= RetryErrorOptions.RetryWhenTransaction;
     }
     return retryErrorCodes.Any<RetryErrorCode>(x => ((x.ErrorCode == error) && ((x.RetryErrorOptions & retryErrorOptions) == retryErrorOptions)));
 }
 public RetryErrorCode(int code, RetryErrorOptions retryErrorOptions)
 {
     this.ErrorCode         = code;
     this.RetryErrorOptions = retryErrorOptions;
 }