Access to Handler instance #817
Unanswered
DavideCordella
asked this question in
Q&A
Replies: 1 comment 4 replies
-
No, and this is intentionally by design. If you need some common behavior between multiple dependencies, extract that common logic into its own service and have each class take that common dependency. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I'm new to MediatR package, I'm implementing a custom behavior for the pipeline and I need to get access to the running handler instance in order to run some methods contained in it according to some value in the request.
At the moment I can see this is not possible. Am I correct? Any chance to get this feature in the future?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions