What is MediatR? Why do we need it? And How to use it?
Mediator Pattern - The mediator pattern ensures that objects do not interact directly instead of through a mediator. It reduces coupling between objects which makes it easy to maintain the code. Mediator pattern unified the service interfaces around a common design, one request in, one response out.
MediatR is a simple, unambitious mediator implementation in .NET.
Let’s now dive deeper...
далее...