开发者

How to configure WCF to push real-time data to the client?

I need to send live updates from serv开发者_StackOverflow中文版er to client. I know that WCF generally can do this. However silverlight is a picky client..

Does anyone know how to configure WCF to send the real-time updates to Silverlight client?

Snipets from configs and walkthrough will be greatly appreciated.


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.


Depending on the infrastructure (intranet?) you could use sockets.


You can setup your WCF service to use PollingDuplexHttpBinding .

See this video tutorial from channel9.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜