标签云

微信群

扫码加入我们

WeChat QR Code

This question already has an answer here:What is the best choice for .NET inter-process communication? [closed]8 answersI 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.


What type of communication? Do you mean sending commands back and forth, or are you only sending data?

2019年09月19日00分40秒

Local or remote? Reliable or best effort? Synchronous or asynchronous (queued)? Point to point of pub-sub? One size does not fit all.

2019年09月18日00分40秒

Remus Rusanu: locally, but is it different ways depending on your next options?

2019年09月19日00分40秒

T.S. You don’t. This topic is not asking for answers because it is off-topic for the reason that is given in the linked question.

2019年09月18日00分40秒

T.S. Interest is not relevant here. Feel free to go to meta if you disagree with that.

2019年09月18日00分40秒

which additional information is needed?

2019年09月18日00分40秒

Just a few of the concerns raised above - do you have needs for message queuing, pub/sub, etc.If you're just looking to invoke methods across processes, WCF is the recommenced method.You'll probably run into a lot of ".NET Remoting", but as Anuj mentioned, it's kind of antiquated at this point.

2019年09月19日00分40秒

I do not need message queuing, pub/sub, etc. but of course it is interesting to know what if I would? Does it mean that I need to use another ways (not WCF)?

2019年09月18日00分40秒

I was about to go on a long diatribe talking about other non .net systems I would use until I came across this:blogs.msdn.com/b/tomholl/archive/2008/05/17/…

2019年09月18日00分40秒

gorik: WCF is the MS recommendation. What more are you looking for?

2019年09月18日00分40秒

I knew about WCF, that is why I mentioned it in the question. What I have asked - is there COMMON way of doing it. In other words do Microsoft recommends something for doing it?

2019年09月18日00分40秒