I have two Async tasks (A & B) which upon completion will invoke the callback method passed. I want to wait till both complete and be able to perform another task C using the results of tasks A and B.
How can this be accomplished? Is there a standard way of doing this?
Any pointers will be helpful.
There are several ways to solve this problem for example via Threading, but in C# you have techniques to implement this other ways. Therefore you have to use Delegates and an asynchronous method call.
Here is a link from Microsoft Support – if you are an experienced C# programmer you could scroll down and read the samples, else if i would recommend to read the full article.
http://support.microsoft.com/kb/315582
(sample 3 could solve your issue).