Click here to Skip to main content
16,019,514 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to call WCF service method asynchronously? That means I need to call a service method which takes, let's say e.g, 20 seconds. I want to call that method and let the client to do some other tasks i.e, I should not wait for the method to complete. In simple words, the progress bar in browser should not appear for 20 seconds. The browser should allow me to do other tasks in the page. How can I incorporate this?
Posted

1 solution

When you generate the proxy classes it genrates aysnc methods for you (assuming you haven't switched this behaviour off). Suppose you have an Add method on the service, the client will have both Add and AddAsync methods, and an AddCompleted event that takes a AddCompletedEventArgs to handle the response.


MSDN clickety here[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900