Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Break the circuit after the specified number of consecutive exceptions
- // and keep circuit broken for the specified duration.
- Policy
- .Handle<SomeExceptionType>()
- .CircuitBreaker(2, TimeSpan.FromMinutes(1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement