Full source code available here.
Want to learn more about Polly? Check out my Pluralsight course on it.
This post on the Polly circuit breaker is part of a larger series of post on the Polly Resilience Framework, see here for the others, or check out my Pluralsight course.