3

我正在设计一项将执行计算的服务,这对我的设备来说太重了。为了获得最佳性能,我想使用 netTcpBinding。MFSvcUtil 工具成功地从提供的 WSDL 生成代码文件。但我看不到任何方法可以使用 netTcpBinding 实例化代理。

唯一可用的绑定是WS2007HttpBindingCustomBinding。使用 WS2007HttpBinding 看起来像这样(根据这个博客):

WS2007HttpBinding binding = new WS2007HttpBinding (new HttpTransportBindingConfig(new Uri("url to svc")));
m_proxy = new ProxyClass (binding, new ProtocolVersion11());    

但我不想使用 HTTP。我应该使用哪种绑定?

4

0 回答 0