[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Event based async operation contracts in DuplexBinding

Posted on 2011-05-10
1
Medium Priority
?
582 Views
Last Modified: 2012-05-11
Hi,

Is there any way to use async service methods using Events.

For instance i am using Beginxxx and Endxxx methods for async operations.

Is there any way to get events instead of Endxxxx method when the async method finish ?
0
Comment
Question by:SanjaySutar
1 Comment
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 35734494
You can use WCF callbacks, but  you have to replace all your async calls with the new event based callbacks
Check the following samples:
http://idunno.org/archive/2008/05/29/wcf-callbacks-a-beginners-guide.aspx
http://www.switchonthecode.com/tutorials/wcf-tutorial-events-and-callbacks
http://msdn.microsoft.com/en-us/magazine/cc163537.aspx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In previous Articles, we have discussed how we can upload a file using .asmx web service and isolated storage space. Here, in continuation to the topic, I am going to discuss how we can use WCF for the same purpose. Steps: 1.Create the silverli…
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

831 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