How can I wait for all subscribers to complete after a I publish an event before I continue execution to the next statement.
_eventAggregator.GetEvent<MyEvent>().Publish(myData);
//wait for all subscribers to complete?
DoSomething()
_eventAggregator.GetEvent<MyEvent>().Publish(myData);
//wait for all subscribers to complete?
DoSomething()