问题描述
在同一个盒子上的应用程序之间实现进程间通信的最佳方法是什么?两者都是用c#编写的?
What is the best way to implement interprocess communication between applications that are on the same box -- both written in c#?
管理器应用程序将发送命令,例如:停止,启动其他应用程序.它还将监视应用程序,并可能要求提供数据.
The manager application will be sending commands such as: stop, start to the other applications. It will also be monitoring the applications and possibly asking for data.
所有应用程序都将在Windows 7 OS上运行的同一台计算机上.
All applications will be on the same machine running on windows 7 OS.
IPC渠道是否是一个不错的选择?是命名Pipes的更好选择吗?还是插座是更好的选择?
Is IPC Channel a good choice for this? Is named Pipes a better choice? Or is sockets a better choice?
所有被管理的应用程序都具有相同的名称.当它们启动时,它们会加载一个dll,该dll确定运行的算法.
The applications that are being managed all have the same name. When they start up, they load in a dll that determines which algorithms are run.
谢谢
推荐答案
将其固定下来,将WCF与命名管道一起使用.
Boling it down, use WCF with Named Pipes.
这里是一个与该问题有关的链接:
Here is a link that has some meat to it regarding exactly this question: What is the best choice for .NET inter-process communication?
这篇关于同一框上的进程间通信-2个应用程序或进程之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!