Circuit breaker pattern in C#