Questions tagged [policy-registry]

3 questions
3
votes
1 answer

C# and Polly - How to Unwrap IAsyncPolicy to get to the ICircuitBreakerPolicy

I am setting up Polly policies with some variant of: Policy .Handle() .AdvancedCircuitBreakerAsync(failureThreshold, samplingDuration, minimumThroughput, durationOfBreak ) .WrapAsync(Policy.TimeoutAsync(timeout,…
JALLRED
  • 855
  • 1
  • 11
  • 23
3
votes
1 answer

Polly CircuitBreaker - Dynamic Duration of Break

What's the correct way to modify the Duration Break on Polly? I know in the documentation they mention implementing (PolicyRegistry). Is there any example of this? I was implementing Polly CircuitBreaker in one WinService.
-1
votes
2 answers

No service for type 'Polly.Registry.IReadOnlyPolicyRegistry`1[System.String]' has been registered

There is an extension method that registers IAccountSearchServiceClient with some policy handlers looks like Polly lib is used public static IServiceCollection AddAccountSearchServiceClient(this IServiceCollection services) { …
Artem Vertiy
  • 1,002
  • 15
  • 31