C# - WCF - 进程间通信 [英] C# - WCF - inter-process communication
问题描述
什么是最好的WCF结合使用的进程间通信?
What is the best WCF binding to use for inter-process communication?
我已经使用WCF通过局域网,这是惊人的,我想使用它的进程间通信也是如此。我不希望暴露在网络上的通信,但是。
I have used WCF over local networks and it is amazing, and I'd like to use it for inter-process communication as well. I do not want to expose the communication over the network, however.
推荐答案
使用的<一个href="http://msdn.microsoft.com/en-us/library/system.servicemodel.netnamedpipebinding.aspx">NetNamedPipeBinding在同一台计算机上的进程间通信。使用<一个href="http://msdn.microsoft.com/en-us/library/system.servicemodel.nettcpbinding.aspx">NetTcpBinding如果你是跨越机器的界限。我发现这个流程图有帮助的。
Use the NetNamedPipeBinding for inter-process communication on the same machine. Use the NetTcpBinding if you are crossing machine boundaries. I've found this flow chart helpful.
。
.
这篇关于C# - WCF - 进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!