Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

CompositePresentationEvent order of execution

$
0
0

If i publish multiple events in a single threaded environment, in what order will the subscribers be invoked?

for intance,

Event 1

UpdateCartEventArgs args = new UpdateCartEventArgs (param);
eventAggregator.GetEvent<UpdateCartEventArgs >().Publish(args);

Event 2

eventAggregator.GetEvent<RunTotalEvent>().Publish(
                     new RunTotalEventEventArgs(param));

In which order will the subscribers be called? Is it guarenteed (in a single threaded environment) that Event 1's subscriber will be invoked before event 2?


Anonymous


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>