In MediatR architecture, each task is represented by a Request, sent to the corresponding Handler by the framework. However, MediatR acts like a pipeline, not directly passing the Request to the Handler.
Instead, it goes through one or more middlewares, called Pipeline Behaviors, in three steps:
1. Pre-Processing:
In the