10 references to CircuitBreaker
Microsoft.Extensions.Http.Resilience (3)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (2)
25if (options.Endpoint.CircuitBreaker.SamplingDuration < timeout) 29$"Sampling Duration: {options.Endpoint.CircuitBreaker.SamplingDuration.TotalSeconds}s," +
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
138.AddCircuitBreaker(options.Endpoint.CircuitBreaker)
Microsoft.Extensions.Http.Resilience.Tests (7)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (4)
19options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromSeconds(1); 47options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2); 52options.Endpoint.CircuitBreaker.SamplingDuration = 92options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds / 2);
Hedging\HttpStandardHedgingResilienceOptionsTests.cs (1)
27_options.Endpoint.CircuitBreaker.Name.Should().Be("StandardHedging-CircuitBreaker");
Hedging\StandardHedgingTests.cs (2)
329opt.Endpoint.CircuitBreaker.FailureRatio = 0.99; 330opt.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromSeconds(900);