How to utilise Event aggregator in MEF?

Topics: Prism v4 - WPF 4
Feb 21, 2014 at 7:41 PM
I am running the latest PRISM 4.2. Unfortunately the Event Aggregator tutorial in the documentation is driven via Unity instead of MEF. And I can't get it running under MEF.

If you may be so kind and have a look at my question here on Stackoverflow.

Many Thanks for your help,
Feb 24, 2014 at 7:13 AM
There is a MefEventAggregator which is used by MEF. You have to add the parameter IEventAggregator to your MainViewModel.
public class MainViewModel : BindableBase, IServiceCallback
    public MainViewModel(IEventAggregator eventAggregator)
I think that's it.