【发布时间】:2016-01-25 14:31:19
【问题描述】:
根据我所阅读的有关使用网络管道的 WCF 服务的所有内容,我希望能够在不同的用户会话上使用地址 net.pipe://localhost/service/,因为 WCF 不使用名称而是使用 GUID。
无论如何,当我启动多项服务时,我会收到 AddressAlreadyInUseException 的消息:
Cannot listen on pipe name 'net.pipe://localhost/service/' because another pipe endpoint is already listening on that name.
有没有办法将每个 WCF 服务的范围限制为用户会话?连接将始终来自同一个用户会话。
【问题讨论】:
-
那篇文章所说的与我发生的事情完全相反。如果这是真的,我不会得到 AddessAlreadyInUseException。我错过了什么吗?
标签: c# .net web-services wcf net.pipe