MediatR: how to use Decorators to add retry policies

Hi All! Today we'll see an interesting technique to add retry policies to MediatR. It can actually be used also for other types of policies (fallback, circuit breaker, and so on), but we'll focusing on retries to keep things simple.

As you might have guessed, this "magic trick" involves the use of the Decorator Pattern. We talked already about it in another article so I'm not going to spend time on it. Let's jump into the code!

Read the full article here: https://www.davideguida.com/mediatr-how-to-use-decorators-to-add-retry-policies/

submitted by /u/davideguida
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/2YhgtET

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close