简体   繁体   中英

Silverlight - using duplex with PollingDuplexHttpBinding instead of NetTcpBinding

I'm building a Silverlight website and I'm looking for the simplest two way communication between the client and the server.

As I've understand, this is done with WCF, using duplex.

I've read some tutorials, all regarding either NetTcpBinding or PollingDuplexHttpBinding.

NetTcpBinding seems a bit simpler in every aspect.

And I wandered, regarding Silverlight applications, what are the drawbacks?

Is there any reason to use PollingDuplexHttpBinding instead of NetTcpBinding?

I think there are a lot of reasons but comparing nettcpbinding with PollingDuplexHttpBinding dramatically affects performance, only solution to use in intranet environment and can use only ports 4502-4534. Again, SSL is not suported by silverlight for nettcp protocol.

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