【问题标题】:Bindings for WCF Service running in a local network在本地网络中运行的 WCF 服务的绑定
【发布时间】:2015-09-16 09:55:58
【问题描述】:

我的场景是我在 Windows 服务中托管了 WCF 服务。此 WCF 服务将在本地网络中使用。客户端应用程序将一个简单的数据值传递给 WCFService。不涉及大量数据。 在这种情况下最好使用什么绑定?以及为什么。

【问题讨论】:

    标签: windows-services wcf-data-services wcf-binding nettcpbinding basichttpbinding


    【解决方案1】:

    我推荐“netTcpBinding”。它比基于 HTTP 的绑定更快,因为它以二进制而不是文本格式对消息进行编码,并且它支持会话、流等所有功能。它还支持双工合同和交易。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-27
      • 2012-03-11
      • 1970-01-01
      • 2016-05-29
      • 1970-01-01
      • 2015-02-11
      • 2019-01-29
      • 2023-03-11
      相关资源
      最近更新 更多