如何WCF配置为实时数据推送到客户端? [英] How to configure WCF to push real-time data to the client?

查看:166
本文介绍了如何WCF配置为实时数据推送到客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从服务器发送实时更新客户端。我知道,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.

这篇关于如何WCF配置为实时数据推送到客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆