开发者

How to communicate between processes? [duplicate]

This question already has answers here: What is the best choice for .NET inter-process communication? [closed] 开发者_C百科 (8 answers) Closed 6 years ago.

I can come up only with serialization, using of WCF, etc. But is there the standard common way for communication between 2 processes in .Net?

UPDATE: What I actually mean how to communicate between 2 processes locally when I do not need to use WCF, Remoting and network at all. Are there some ways of doing it? And I am interesting in more elegant ways than storing data to HDD or to database.


With no other information, I would suggest using WCF with a named pipes configuration:

What is the best choice for .NET inter-process communication?


You can also look at .NET Remoting. But for all intents and purposes you shouldn't be using it unless you have explicit requirements that are satisfied by remoting like...in-process, cross-appdomain communication.

I would just look at WCF's NetNamedPipeBinding. It sounds like it's exactly what you want: http://www.codeproject.com/KB/WCF/wcfipcsample.aspx

Also it seems this question has already been answered:

Interprocess communication for Windows in C# (.NET 2.0)

C# - WCF - inter-process communication

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜