Silverlight Async calls

I am making two async calls in silverlight.
The second call is dependent on the result of the first call. How can I make the second call wait until the first call is finished.
cswebdevAsked:
Who is Participating?
 
Gautham JanardhanConnect With a Mentor Commented:
you need to make the second call in the completed event of the second.
0
 
Gautham JanardhanCommented:
ServiceClient c= new ServiceClient();

c.SumCompleted += (s,a)=>
{
     c.secondcallasync(......);
     c.secondCompleted += (x,y)=>
     {
     };
};

c.sumAsync(..........);
0
 
apeterCommented:
gauthampj is right. You have any problem with that ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.