简体   繁体   English

Silverlight-使用带有PollingDuplexHttpBinding而不是NetTcpBinding的双工

[英]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. 我正在建立一个Silverlight网站,并且正在寻找客户端和服务器之间最简单的双向通信。

As I've understand, this is done with WCF, using duplex. 据我了解,这是通过WCF使用双工完成的。

I've read some tutorials, all regarding either NetTcpBinding or PollingDuplexHttpBinding. 我已经阅读了一些有关NetTcpBinding或PollingDuplexHttpBinding的教程。

NetTcpBinding seems a bit simpler in every aspect. NetTcpBinding在各个方面似乎都比较简单。

And I wandered, regarding Silverlight applications, what are the drawbacks? 我徘徊,关于Silverlight应用程序,有什么缺点?

Is there any reason to use PollingDuplexHttpBinding instead of NetTcpBinding? 是否有任何理由使用PollingDuplexHttpBinding而不是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. 我认为有很多原因,但是将nettcpbinding与PollingDuplexHttpBinding进行比较会极大地影响性能,仅是在Intranet环境中使用的解决方案,并且只能使用端口4502-4534。 Again, SSL is not suported by silverlight for nettcp protocol. 同样,对于nettcp协议,silverlight不支持SSL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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