Conditionally subscribe to a notification #1031
Unanswered
sebastianwhiffen
asked this question in
Q&A
Replies: 1 comment
-
Try creating another interface that inherits from INotification, for example, IMyNewNotification : INotification. As a general suggestion, avoid using the plain IMediator interface directly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, is there any existing way to conditionally subscribe to a class implementing : INotification ?
the .Publish method is nice but depending on my projects use I may want to exclude some events (or more specifically not include them in the first place) in different scenarios
is this possible to configure on startup or am I stuck without resorting to using something like https://github.com/StevenRasmussen/MediatR.Dynamic
Thanks in advance for any replies
Beta Was this translation helpful? Give feedback.
All reactions