Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: pub/sub: How to wait for all subscribers to complete

$
0
0
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()

Viewing all articles
Browse latest Browse all 1878

Trending Articles