11 references to CircuitBreaker
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
475options.CircuitBreaker.SamplingDuration = TimeSpan.FromMinutes(5); // needs to be at least double the AttemptTimeout to pass options validation
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
133resilience.CircuitBreaker.SamplingDuration = resilience.AttemptTimeout.Timeout * 2;
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
475options.CircuitBreaker.SamplingDuration = TimeSpan.FromMinutes(5); // needs to be at least double the AttemptTimeout to pass options validation
Microsoft.Extensions.Http.Resilience (3)
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (2)
24if (options.CircuitBreaker.SamplingDuration < TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier)) 28$"Sampling Duration: {options.CircuitBreaker.SamplingDuration.TotalSeconds}s," +
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
86.AddCircuitBreaker(options.CircuitBreaker)
Microsoft.Extensions.Http.Resilience.Tests (5)
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (4)
25options.CircuitBreaker.SamplingDuration = TimeSpan.FromSeconds(1); 53options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2); 58options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10); 93options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds / 2);
Resilience\HttpStandardResilienceOptionsTests.cs (1)
23_options.CircuitBreaker.Name.Should().Be("Standard-CircuitBreaker");