MediatR
MediatR is a lightweight in-process messaging library for the .NET platform that implements the mediator pattern. It enables decoupling between components by routing requests and notifications through a centralized mediator rather than having components call each other directly. This can simplify dependencies and improve testability in applications of various sizes.
Core concepts in MediatR include IMediator, which exposes methods for sending requests and publishing notifications; IRequest<T>
MediatR supports asynchronous operation and can be extended with pipeline behaviors. Pipeline behaviors are extensible components
Common use cases include implementing the CQRS pattern, separating commands and queries, and decoupling senders from
Originating with Jimmy Bogard, MediatR is an open-source library commonly used in .NET applications and distributed