简体   繁体   English

Wcf - 使用双工 - 回调

[英]Wcf - using duplex - callbacks

我正在使用 mvvm 设计模式创建一个带有 wpf 客户端的 wcf 项目,我需要在哪里实现 ICallback 接口以便我能够更新窗口。

The callback contract should be implemented on the client-side.回调合约应该在客户端实现。 Likewise, the service contract should be implemented on the server-side, with which the server can send data to the client-side by the callback contract.同样,服务合约也应该在服务端实现,服务端可以通过回调合约向客户端发送数据。
Please refer to my example of the previous post.请参考我上一篇文章的例子。
TimeOut exception in WCF while implementing duplex 实现双工时 WCF 中的超时异常
the client sends a parameter to the server by using the service interface, subsequently, the server sends the handled result to the client with the callback contract so that the client application gets the updated.客户端通过服务接口向服务端发送参数,随后服务端通过回调合约将处理结果发送给客户端,以便客户端应用程序得到更新。
Feel free to let me know if there is anything I can help with.如果有什么我可以帮忙的,请随时告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM