Logging MediatR Requests
With the MediatR v3, there is the ability to create your own request pipelines. To help out of the box, there are some predefined behaviors to help out with commen tasks such as pre and post request. These are RequestPreProcessorBehavior<,> and RequestPostProcessorBehavior<,> I’ve blogged about the new behaviors before but you can do it more generically. Cross Cutting Behavior I was looking at the pipeline to handle cross-cutting concerns like logging and metrics, which I would want on each command/query. — Scott Banwart (@sbanwart) September 6, 2017 Logging Pretty typical scenario of wanting to log incoming requests. One common… Read More »Logging MediatR Requests