@@ -80,10 +80,10 @@ private ResiliencePipeline BuildResiliencePipeline(ResilienceOptions options)
8080 {
8181 MaxRetryAttempts = options . Retry . MaxRetryAttempts ,
8282 ShouldHandle = new PredicateBuilder ( ) . Handle < DbUpdateException > ( )
83- . Handle < TimeoutException > ( )
84- . Handle < InvalidOperationException > ( ex =>
85- ex . Message . Contains ( "connection" , StringComparison . OrdinalIgnoreCase ) ||
86- ex . Message . Contains ( "timeout" , StringComparison . OrdinalIgnoreCase ) ) ,
83+ . Handle < TimeoutException > ( )
84+ . Handle < InvalidOperationException > ( ex =>
85+ ex . Message . Contains ( "connection" , StringComparison . OrdinalIgnoreCase ) ||
86+ ex . Message . Contains ( "timeout" , StringComparison . OrdinalIgnoreCase ) ) ,
8787 BackoffType = options . Retry . UseExponentialBackoff
8888 ? DelayBackoffType . Exponential
8989 : DelayBackoffType . Constant ,
@@ -104,10 +104,10 @@ private ResiliencePipeline BuildResiliencePipeline(ResilienceOptions options)
104104 MinimumThroughput = options . CircuitBreaker . FailureThreshold ,
105105 BreakDuration = TimeSpan . FromMilliseconds ( options . CircuitBreaker . BreakDurationMs ) ,
106106 ShouldHandle = new PredicateBuilder ( ) . Handle < DbUpdateException > ( )
107- . Handle < TimeoutException > ( )
108- . Handle < InvalidOperationException > ( ex =>
109- ex . Message . Contains ( "connection" , StringComparison . OrdinalIgnoreCase ) ||
110- ex . Message . Contains ( "timeout" , StringComparison . OrdinalIgnoreCase ) )
107+ . Handle < TimeoutException > ( )
108+ . Handle < InvalidOperationException > ( ex =>
109+ ex . Message . Contains ( "connection" , StringComparison . OrdinalIgnoreCase ) ||
110+ ex . Message . Contains ( "timeout" , StringComparison . OrdinalIgnoreCase ) )
111111 } ;
112112
113113 pipelineBuilder . AddCircuitBreaker ( circuitBreakerOptions ) ;
0 commit comments