Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // Break the circuit after the specified number of consecutive exceptions
  2. // and keep circuit broken for the specified duration.
  3. Policy
  4. .Handle<SomeExceptionType>()
  5. .CircuitBreaker(2, TimeSpan.FromMinutes(1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement