WPF + Communicate between multiple application ins

2020-04-10 03:38发布

I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise). Any help?

2条回答
家丑人穷心不美
2楼-- · 2020-04-10 03:58

Do you mean between two processes or app domains? I'd look up AppDomain and see if that works for your situation. If you need to communicate between two processes, I'd use named pipes through WCF.

查看更多
干净又极端
3楼-- · 2020-04-10 04:04

You'll need to use some form of Interprocess Communication.

Since you're using WPF, and hence .NET, I'd recommend using Windows Communication Foundation. If these instances are running on the same system, using pipes via WCF is a great option.

查看更多
登录 后发表回答