Solved

Silverlight Async calls

Posted on 2012-03-20
3
441 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get distinct values from excel or comm seperated file 4 41
C# class library debugging - Breakpoint will not hit. 8 33
Problem to Office 1 44
aspx ascx, c# 7 18
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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