Search code examples
c#.netwinformsapplicationdomain

Negotiate two applications in separate domains


How can I notify another application which is in different domain that current running application has crashed? in the other words, Is it possible to negotiate two different applications in separate domain?

Thanks in advance.


Solution

  • You can use named pipes for this sort of IPC. For this, look into System.IO.Pipes namespace and excellent NamedsPipeServerStream & NamedPipeClientStream classes.

    Note that you can use anonymous pipes only for inter process communications within the same domain, while you can use named pipes for IPC in separate domains (i.e. across PCs on the same intranet).