Solved

Silverlight Async calls

Posted on 2012-03-20
3
443 Views
Last Modified: 2012-04-23
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
Comment
Question by:cswebdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 330 total points
ID: 37747356
you need to make the second call in the completed event of the second.
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 37747369
ServiceClient c= new ServiceClient();

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

c.sumAsync(..........);
0
 
LVL 25

Expert Comment

by:apeter
ID: 37749941
gauthampj is right. You have any problem with that ?
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question