.net - WCF NetNamedPipeBinding - Same pipe name and different users
问题描述
I struggle a bit with the following. I create a WCF server like:
new ServiceEndpoint(ContractDescription.GetContract(typeof(IMyService)), new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/MyService"));
On an Windows Server OS the first user runs the code and so starts the server. Then the second user logs in and runs the same code. As I understand the documentation of named pipes, it is not possible to create a named pipe with the same name on the same machine. So according to the documentation an exception should have been raised. But it isn't. The second user executes the code and is able to start the second server with the same endpoint address on the same machine. Do I misinterpret the documentation?
解决方案
基地址只能由计算机上的一个应用程序使用。
但是如果不同的用户登录到同一个 Windows Server,每个用户都会遇到一个唯一的 Windows 计算会话。你可以想象每个用户都登录到自己的电脑上,这些用户之间不会互相干扰。
有关“MultiPoint 服务”的更多信息,您可以参考此链接。
推荐阅读
- java - Apache httpclient HTTPGET 解码
- r - 在 R 中创建求和公式
- java - 双向链表,在Java中的给定节点之前插入
- java - 如何以 N 个计数作为参数选择前 N 个记录
- xamarin.forms - 在 Xamarin 表单中调整活动指示器的大小
- ldap - LDAP 身份验证过滤器以验证哪个员工属于哪个组
- javascript - 如何从时钟选择器中获取价值并将其传递给我的表单 f.date_field?
- javascript - 有没有更简单的方法来更新复选框价格?
- selenium - Selenium:使用 ChomeDriver 浏览器而不是 Chrome 时出现 404 错误
- webrtc - WebRTC - 如何通过 sip 将语音流从 chrome 发送到端点