如何WCF配置为实时数据推送到客户端?实时、客户端、数据、WCF

由网友(乖就亲你)分享简介:我需要从服务器发送实时更新客户端。我知道,WCF一般都可以做到这一点。但是Silverlight是一个挑剔的客户。I need to send live updates from server to client. I know that WCF generally can do this. However silv...

我需要从服务器发送实时更新客户端。我知道,WCF一般都可以做到这一点。但是Silverlight是一个挑剔的客户。

I need to send live updates from server to client. I know that WCF generally can do this. However silverlight is a picky client..

有谁知道如何为配置WCF的实时更新发送到Silverlight客户端?

Snipets距离的configs和演练将大大AP preciated。

Snipets from configs and walkthrough will be greatly appreciated.

推荐答案

使用WCF回调。一个很好的演练,显示配置有多种,这是可在 MSDN 。我们使用NetTcpBinding的,在我的上一份工作有很大的影响。这是非常快速和有效。缺点是,它不支持Silverlight的安全传输,因此,如果这是一个要求,你需要去与PollingDuplexHttpBinding。

Use WCF Callbacks. A good walkthrough that shows several configurations for this is available on the MSDN. We used the NetTCPBinding at my last job to great effect. It's very fast and efficient. The downside is that it doesn't support secure transport on Silverlight, so if that's a requirement you'll need to go with the PollingDuplexHttpBinding.

阅读全文

相关推荐

最新文章