You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Builds the CircuitBreakerPolicy. Through this policy a request will be retried for <paramref name="breakAfterCount"/> and break after. This will move the circuit breaker into Open state.
24
+
/// Builds the CircuitBreakerPolicy. Through this policy if <paramref name="breakAfterCount"/> consecutive requests will fail with transient HttpErrors
25
+
/// the circuit breaker will move into Open state.
22
26
/// It will stay in this state(Open) for the <paramref name="breakDuration"/>. This means that requests made while the circuit is in this state will fail fast.
23
27
/// When the timeout expires trial requsts are allowed. The state will be changed to a Close state if they succeed.
24
28
/// If they do not succeed the circuit will be moved back in the Open state for another <paramref name="breakDuration"/>.
@@ -35,17 +39,18 @@ public static IAsyncPolicy<HttpResponseMessage> SearchClientCircuitBreakerPolicy
logger.LogInformation("Policy retry - it will retry after {RetryMilliseconds} milliseconds. {Exception} {SearchName}",waitDuration.TotalMilliseconds,delegateResult.Exception,searchName);
77
86
});
78
87
}
@@ -101,5 +110,11 @@ public static IAsyncPolicy<HttpResponseMessage> SearchClientFallBackCircuitBreak
0 commit comments