Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人曾经告诉我,在 WCF 中,如果您使用 net.tcp 绑定但连接到实际上位于 localhost 上的服务,它实际上将使用下面的 net.pipe 绑定。我不确定服务的地址是否需要是localhost,本地IP等。
这是真的?有没有人测试过这个?有开销吗? 使用 net.tcp 进程间会打开一个返回本地机器的套接字吗?
我很确定它不会那样做。当事情不像你期望的那样工作时,这将是非常令人困惑的。