This project has moved and is read-only. For the latest updates, please go here.


Nov 17, 2010 at 2:13 PM

Hello Jeremy,

Although the XML comment on the EventAggregatorService ("Implementation of event aggregator pattern using reactive extensions") suggests that it is base on Rx, it is actually not.

Any reason why not using Rx?


Nov 18, 2010 at 12:18 AM

Yes, I'll need to fix the comment. I wanted to reduce dependencies on any frameworks other than MEF for the guidance.

Nov 18, 2010 at 11:25 AM

I can agree with that, although it would perhaps be a good idea to base the EventAggregatorService implementation on the IObserver and IObservable interfaces. If somebody wants, he can use the Rx extensions on it. Unfortunately these interfaces are not yet in SL4, so you would still depend on the System.Observable assembly of Rx.

Big difference of your EventAggregatorService compared with the Rx (Async)Subject class is that the EventAggregatorService uses weakreferences for it's observers. I am still doubting what the best way would be. There are host discussions on this subject on the internet ;-)