简体   繁体   中英

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

I need to send live updates from server 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.

根据基础设施(内联网?),您可以使用套接字

You can setup your WCF service to use PollingDuplexHttpBinding .

See this video tutorial from channel9.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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