ShouldRetryOn() приватный Метод

private ShouldRetryOn ( Exception ex ) : bool
ex Exception
Результат bool
Пример #1
0
 public void ShouldRetryOn_returns_false_for_exception_nested_in_UpdateException()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new UpdateException("", new TimeoutException())));
 }
Пример #2
0
 public void ShouldRetryOn_returns_true_for_TimeoutException()
 {
     Assert.True(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new TimeoutException()));
 }
Пример #3
0
 public void ShouldRetryOn_returns_false_for_null()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(null));
 }
Пример #4
0
 public void ShouldRetryOn_returns_false_for_non_transient_exception()
 {
     Assert.False(SqlAzureRetriableExceptionDetector.ShouldRetryOn(new EntityException()));
 }
Пример #5
0
 /// <inheritdoc/>
 protected override bool ShouldRetryOn(Exception exception)
 {
     return(SqlAzureRetriableExceptionDetector.ShouldRetryOn(exception));
 }