I currently have to integrate a lot of web service calls into Silverlight, which make the calls look like the code below. No user interaction should be possible until the download of all 3 has been completed.
Essentially, I would like the calls to be synchronous due to the architecture of the web service proxy classes in Silverlight (everything is related to events). I can not do it.
My question is, is there a more elegant solution, or maybe a .NET design template for refactoring what I have from one delegate method calling another method calling another into something that is easier to manage?
One of my biggest problems with the code is calling the actual method that comes after the main work in deletion.
c # design-patterns anonymous-methods delegates
Chris s
source share