How to support persistent in EventAggregator?
-
28-09-2019 - |
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.
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:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow