How to support persistent in EventAggregator?
I am using EventAggregator in Prism, and I want the events per开发者_运维技巧sisted, which means when a client subscribes a certain event, the aggregator published the previous events that missed to the client. Is there a way to support this?
I know this sounds more like a message queue or something. But the system has already heavily coupled with EventAggregator thus I want this framework can allow me to selectively persist some events without too much modification.
The following article discusses a "store and forward" EventAggregator implementation which sounds like an excellent match for your scenario i.e. clients being able to catch up with events they may have missed:
http://www.ademiller.com/blogs/tech/2008/11/adding-store-and-forward-support-to-the-prism-eventaggregator/
精彩评论