Adsk contrib/add circuit breaker policy interface#205
Adsk contrib/add circuit breaker policy interface#205christopherbahr wants to merge 2 commits intoApp-vNext:masterfrom
Conversation
|
Hi @christopherbahr, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
|
Thank you v much for this @christopherbahr , completely see the problem it solves. A question in my mind is how this interacts with the wider question of adding an This coupling could perhaps be unpicked by renaming the interface you propose something like I am going to recommend not merging this one immediately, because we need I think to resolve some of above questions first. But it's very likely we could do something like this, once/assuming Thanks again for the PR, which sheds light on an important need we can feed into the interface thinking. |
|
Sorry to just drive-by PR you like that. I had all the best intentions of coming back with a more comprehensive solution but I never quite had the time to actually do it properly. I'll go ahead and close this. That new proposal looks great 👍 |
|
@christopherbahr no worries! Thanks for the original suggestion, which definitely helped focus how we should do #257 . |
|
@christopherbahr Polly v5.2.0 released, including your original idea from here |
We wanted to build something for our internal monitoring systems to track the current state of our active circuits but there isn't a nice way to hold a collection of
CircuitBreakerPolicy<T>with different wrapped types. This adds an interface that allows for managing collections of policies.We've done a workaround for the moment (just holding a collection of functions that return a CircuitState) but it would be a nice cleanup for us to have this.