Decorator pattern. A real example in C#

from blog Just Some Code, | ↗ original
I’ve been working with Stripe to take payments. Depending on the volume of requests you make to the Stripe API, you might exceed the maximum number of requests per second. This is how we can implement a retry mechanism using the Decorator pattern in C#. A Decorator wraps another object to extend its responsabilities, without modifying its...