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.
我在 Prism 中使用 EventAggregator,我希望事件保持不变,这意味着当客户端订阅某个事件时,聚合器会发布之前错过的事件给客户端。有没有办法支持这一点?
我知道这听起来更像是消息队列之类的。但是系统已经与 EventAggregator 高度耦合,因此我希望这个框架可以让我有选择地保留一些事件而无需太多修改。
下面的文章讨论了一个“存储和转发”EventAggregator 实现,这听起来非常适合您的场景,即客户端能够赶上他们可能错过的事件:
http://www.ademiller.com/blogs/tech/2008/11/adding-store-and-forward-support-to-the-prism-eventaggregator/