Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: concatenate the word document, it's possible? Pin
Alan N25-May-11 4:06
Alan N25-May-11 4:06 
GeneralRe: concatenate the word document, it's possible? Pin
Dave Kreskowiak25-May-11 6:22
mveDave Kreskowiak25-May-11 6:22 
AnswerRe: concatenate the word document, it's possible? Pin
RaviRanjanKr26-May-11 1:55
professionalRaviRanjanKr26-May-11 1:55 
GeneralRe: concatenate the word document, it's possible? Pin
abbd26-May-11 2:33
abbd26-May-11 2:33 
QuestionProblem in Deserializing the XML Pin
Rocky2324-May-11 4:06
Rocky2324-May-11 4:06 
AnswerRe: Problem in Deserializing the XML Pin
PIEBALDconsult24-May-11 5:32
mvePIEBALDconsult24-May-11 5:32 
Questionhow to make multiple asynchronous web service method calls in the same thread? [modified] Pin
JUNEYT24-May-11 2:57
JUNEYT24-May-11 2:57 
AnswerRe: how to make multiple asynchronous web service method calls in the same thread? [modified] Pin
Mark Salsbery24-May-11 5:27
Mark Salsbery24-May-11 5:27 
JUNEYT wrote:
Is there a way to load all asynchronous methods before the form loads.


If the calls are truly asynchronous then there should be some notification of completion (like an event).

I use something similar to the DomainContextLoadBatch class found in this article[^]. This class lets you queue up a bunch of asynchronous calls and doesn't notify you until they have all completed. The class as shown is for WCF RIA Services LoadOperation calls, but could easily be modified for other webservice call types.

*edit* If you use that class as a guide, please note that as shown the class is NOT thread safe, so if your webservice calls can complete on other threads you'll need to make sure at least the class' single completion handler is thread safe.

You shouldn't have to sleep and wait...that negates the whole purpose of asynchronous calls...
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]
modified on Tuesday, May 24, 2011 12:03 PM

QuestionHow to acheive this in LINQ? Pin
John-ph24-May-11 1:53
John-ph24-May-11 1:53 
AnswerRe: How to acheive this in LINQ? Pin
Groulien24-May-11 2:02
Groulien24-May-11 2:02 
GeneralRe: How to acheive this in LINQ? Pin
John-ph24-May-11 2:50
John-ph24-May-11 2:50 
AnswerRe: How to acheive this in LINQ? PinPopular
Pete O'Hanlon24-May-11 2:23
mvePete O'Hanlon24-May-11 2:23 
GeneralRe: How to acheive this in LINQ? Pin
Groulien24-May-11 2:27
Groulien24-May-11 2:27 
GeneralRe: How to acheive this in LINQ? Pin
Pete O'Hanlon24-May-11 2:28
mvePete O'Hanlon24-May-11 2:28 
GeneralRe: How to acheive this in LINQ? Pin
John-ph24-May-11 2:41
John-ph24-May-11 2:41 
GeneralRe: How to acheive this in LINQ? Pin
Pete O'Hanlon24-May-11 2:42
mvePete O'Hanlon24-May-11 2:42 
AnswerRe: How to acheive this in LINQ? Pin
Sanjay J Patolia25-May-11 2:22
Sanjay J Patolia25-May-11 2:22 
AnswerRe: How to acheive this in LINQ? [modified] Pin
Subin Mavunkal25-May-11 3:12
Subin Mavunkal25-May-11 3:12 
QuestionIDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
gumi_r@msn.com24-May-11 1:32
gumi_r@msn.com24-May-11 1:32 
AnswerRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
Subin Mavunkal24-May-11 2:23
Subin Mavunkal24-May-11 2:23 
GeneralRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
Pete O'Hanlon24-May-11 2:27
mvePete O'Hanlon24-May-11 2:27 
GeneralRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
gumi_r@msn.com24-May-11 2:39
gumi_r@msn.com24-May-11 2:39 
GeneralRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
Subin Mavunkal24-May-11 2:46
Subin Mavunkal24-May-11 2:46 
GeneralRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. Pin
Pete O'Hanlon24-May-11 2:48
mvePete O'Hanlon24-May-11 2:48 
GeneralRe: IDisposable and CA2000 warning during Vs2010 Code Analysis. [modified] Pin
gumi_r@msn.com24-May-11 3:28
gumi_r@msn.com24-May-11 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.