Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想澄清事件聚合器设计模式中“发布者”的角色。
我当前的解决方案处理 .NET 数据事件,例如发生在 XmlDocument 中的 XmlNode 事件。
问题:在事件聚合器设计模式中,发布者被认为是什么?
在事件聚合器模式中,您有多种发布者:
因此,您的数据源是发布者。
看看 Martin Fowler 的这篇短文:
http://martinfowler.com/eaaDev/EventAggregator.html