Question

I am using EventAggregator in Prism, and I want the events persisted, 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.

Was it helpful?

Solution

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/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top