Polly icon indicating copy to clipboard operation
Polly copied to clipboard

Circuit breaker fires onReset even if successful

Open bunceg opened this issue 10 years ago • 3 comments

Hi,

Not sure if this is an issue or not but when I use the circuit breaker, the onReset call always appears to fire on each invoke of the circuit breaker wrapper method. Is this correct?

The name infers it should only fire after a circuit has been broken and has now been cleared (i.e. reset to good).

Thanks

bunceg avatar Mar 17 '16 18:03 bunceg

Hi @bunceg . Thank you for picking this up. You are right: the onReset delegate is currently firing too often. A pull request will fix this very shortly.

reisenberger avatar Mar 17 '16 18:03 reisenberger

Hi @bunceg . Thanks again for picking this up. Revised nuget packages fixing this should be available from nuget in the next hour or so - soon as it says 4.1.2 there.

reisenberger avatar Mar 17 '16 19:03 reisenberger

The updated NuGet packages have been published, as is indicated by the 4.1.2 version displayed on the Polly home page as well as on nuget.org

joelhulen avatar Mar 17 '16 20:03 joelhulen