什么是进程间通信的2 C#进程之间最简单的方法?

问题描述:

我想都写在C#中的父子进程间的通信。它应该是异步的,事件驱动的。我不希望在运行过程中的每一个线程处理非常罕见的沟通。

I want communicate between a parent and child process both written in C#. It should be asynchronous, event driven. I does not want run a thread in every process that handle the very rare communication.

什么是它的最佳解决方案?

What is the best solution for it?

匿名管道。

http://msdn.microsoft.com/en-us/library/bb546102.aspx

用的BeginRead / BeginWrite和使用AsyncCallback的异步操作。

Use Asynchronous operations with BeginRead/BeginWrite and AsyncCallback.