• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

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.
0
cswebdev
Asked:
cswebdev
  • 2
1 Solution
 
Gautham JanardhanCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now