How to implement cross cutting concerns with MediatR Pipeline Behaviours
exploring how to make use of MediatR Pipeline Behaviors to address cross-cutting concerns like caching, logging, validation, security and transactions
exploring how to make use of MediatR Pipeline Behaviors to address cross-cutting concerns like caching, logging, validation, security and transactions
MediatR Pipeline behaviours were introduced in Version 3, enabling you execute validation or logging logic before and after your Command or Query Handlers execute, resulting in your handlers only having to deal with Valid requests in your CQRS implementation
Mediator pattern is used to reduce communication complexity between multiple objects or classes. The pattern provides a mediator class which handles all the communications between different classes and supports easy maintenance of the code by loose coupling.