Created core implementation of the circuit breaker from the MSDN pattern catalog.