I have 2 windows form application. 1st application interacts with database while other application is aimed to communicate with the 1st application to interact with the database. So how can I interact two applications with each other. Which tool should I use?
Here is a good example using WCF to communicate two processes:
http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication
Another option is ZeroMQ C# binding:
One option would be to use WCF named pipes (net.pipe) the other option would be Anonymous Pipes for Local Interprocess Communication
Excerpt:
Anonymous pipes offer less functionality than named pipes, but also require less overhead. You can use anonymous pipes to make interprocess communication on a local computer easier. You cannot use anonymous pipes for communication over a network.
Use WCF with netnamedpipe binding as @I4V recommends. Other alternatives are use Pipes, Remoting, or fileshare.
来源:https://stackoverflow.com/questions/14244962/communication-between-2-windows-from-application