Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

What is the purpose of IPipelineBehavior in the following code? #349

Answered by ratanparai
mahedee asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a good article to read about the use cases of IPipelineBehavior - https://lurumad.github.io/cross-cutting-concerns-in-asp-net-core-with-meaditr

The code snippet inject the LoggingBehavior to the service so that MediatR can find our logging behavior before calling the handlers

I hope this will help.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mahedee
Comment options

mahedee Apr 10, 2021
Maintainer Author

Answer selected by mahedee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants