根据我所阅读的有关使用网络管道的 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 服务的范围限制为用户会话?连接将始终来自同一个用户会话。