I am using EventAggregator to puslish an event before taking an action and need to check if any of the subscriber(s) wants to stop that action.
E.g from WebBrowser before navigating to a Url it fires an event saying I am about to navigate to UrlX now lets say ModuleX is listening to that event and it performs a check to see if Url is safe to go to or not, or another module is checking if url is
valid or not etc etc.
As I understand all events are published asynchronous using EventAggregator, so how can I accomplish CancelEventArgs like functionality.
PS: My application is in WPF.