10 references to CircuitBreaker
Microsoft.Extensions.Http.Resilience (3)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (2)
25
if (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)
19
options.Endpoint.
CircuitBreaker
.SamplingDuration = TimeSpan.FromSeconds(1);
47
options.Endpoint.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2);
52
options.Endpoint.
CircuitBreaker
.SamplingDuration =
92
options.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)
329
opt.Endpoint.
CircuitBreaker
.FailureRatio = 0.99;
330
opt.Endpoint.
CircuitBreaker
.SamplingDuration = TimeSpan.FromSeconds(900);