开发者

WCF callback in WPF application

I wrote WCF server and silverlight application that using this WCF service method. Any WCF service method that i call from the silverlight开发者_StackOverflow中文版 - i get 'callback' from the server.

Now, i wrote small WPF desktop applicaiton - and i don't get any 'callback' when i calling the same WCF service method ( the WCF service and the WPF application does not run on same machine )

Is it OK ?

Is there any way to get 'callback' from WPF app. like in Silverlight ?

Thanks for any help.


When you use WCF with Silverlight, it automatically makes the WCF server calls Asynchronous and adds the callbacks.

WPF does not do this by default. To generate the Async operations, you need to go into the ServivceReference Properties and check the Generate asynchronous operations box.

WCF callback in WPF application

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜