Publisher clarification for Event Aggregator design pattern
-
28-10-2019 - |
Question
I would like to clarify the role of the "publisher" in the Event Aggregator design pattern.
My current solution handles .NET data events, such as XmlNode events occuring in a XmlDocument.
Question: In the Event Aggregator design pattern, what is considered the publishers?
Solution
In Event Aggregator pattern, you have you types of publishers:
- Source of events which the aggregator is an observer/subscriber to,
- The aggregator itself, which has it's own subscribers
So your data sources are publishers.
take a look to this short article by Martin Fowler:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow