martintmk
martintmk
Yes, this is already supported.
Yes, V8 now supports this scenario.
@fenomeno83 The predicates in v8 are much more powerful and allow you to access the context or make external asynchronous calls. See this example: https://github.com/App-vNext/Polly/blob/v8-fixed-issues/src/Polly.Core.Tests/Issues/IssuesTests.FlowingContext_849.cs This issue will be closed...
The alpha is released, and you can try this out. https://www.nuget.org/packages/Polly Closing the issue.
Currently not, but it's easy enough to add post V8 release. https://github.com/App-vNext/Polly/blob/dd14ca630b7614955580e7b26e0adc56f653c694/src/Polly.Core/CircuitBreaker/CircuitBreakerStrategyOptions.cs#L34 ``` c# public abstract class CircuitBreakerStrategyOptions { public Func? BreakDurationGenerator { get; set; } } ``` It will...
> @martintmk Do we have enough events in the metrics in v8 that would allow people to do this sort of thing without us having to expose the internals directly?...
@Crown0815, this issue is very similar to #959 and will be addressed and closed once v8 is released.
The alpha is released and you can try it out. https://www.nuget.org/packages/Polly Closing the issue.
We decided to not create another assembly as `Polly.Core` is already a small library with no dependencies. Creating something like `Polly.Abstractions` would introduce possible versioning problems. For context: https://github.com/App-vNext/Polly/pull/1233#issuecomment-1655063281 @martincostello...
There was a recent PR in dotnet/extensions that makes this possible: https://github.com/dotnet/extensions/pull/4858 Another PR updates the section on resilience and static clients: https://github.com/dotnet/docs/pull/39010 One thing that not possible is to...