WCF 命名管道:跨网络?真的吗?
许多人似乎认为这是可能的,但显然在本文档中,边界声明为在我看来,进程间意味着“无网络”。
另一个文档完全明确:
命名管道传输的覆盖范围很小;它只能连接到同一台机器上运行的服务
那么为什么这里有这么多海报说它可以工作呢?
Many people seem to think this it is possible, yet clearly in this document the boundary is stated as inter-process which to my mind means "no network".
Another document is completely unambiguous:
The named pipe transport has very little reach; it can only connect to services running on the same machine
So why are so many posters here saying it can work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您需要区分命名管道和WCF绑定实现NETNamedPipeBinding。
NetNamedPipeBinding 是 WCF 的预定义绑定,用于机器上的通信。
但是,如果您查看有关命名管道的 MSDN 文档 ,您可以看到可以跨网络设置命名管道。
I think you need to make a distinction between Named Pipe and WCF binding implementation NETNamedPipeBinding.
The NetNamedPipeBinding is a predefined binding for WCF for on-machine communication.
But if you check the MSDN documentation about Named Pipes, you can see that it is possible to setup a named pipe across network.
一般来说,命名管道在网络上工作。但是,通过将命名管道与 WCF 结合使用,您只能进行机器上的通信。这就是为什么您的第一个和最后一个链接都是正确的。
In general, named pipes work across the network. However, using named pipes with WCF, you're restricted to on-machine communications. That's why your first and last links are both correct.