A simple circuit breaker on C#