I have two publish events in a method. I want all the subscribers to finish the first publish before I call the second. None of the subscribers are being called while the method is executing. The first time a subscriber is called is after the method is completed. One way I can force the subscribers to get called after the first publish is by using Application.DoEvents(). But after reading about this online it says that we should not call this. Is there another way to achieve this?
↧