WCF <operation>Async methods not generated in proxy interface

Posted by Charlie on Stack Overflow See other posts from Stack Overflow or by Charlie
Published on 2010-03-30T15:10:29Z Indexed on 2010/03/30 15:13 UTC
Read the original article Hit count: 784

Filed under:
|
|
|

I want to use the Asnyc methods rather than the Begin on my WCF service client proxy because I'm updating WPF controls and need to make sure they're being updated from the UI thread. I could use the Dispatcher class to queue items for the UI thread but that's not what I'm asking about..

I've configured the service reference to generate the asynchronous operations, but it only generates the methods in proxy's implementation, not it's interface. The interface only contains syncronous and Begin methods.

Why aren't these methods generated in the interface and is there a way to do this, or do I have to create a derived interface to manually add them?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf