Communication between AppDomains

后端 未结 1 612
盖世英雄少女心
盖世英雄少女心 2020-12-18 09:07

We are building an app (WinForms, .NET 3.5) that loads \"Plugin\" DLLs into a secondary AppDomain. The secondary AppDomain needs to communicate occasionally with the 1st one

相关标签:
1条回答
  • 2020-12-18 10:01

    Unless you specifically want to avoid WCF for some reason, I would suggest taking a look at it. Specifically, you can use the NetNamedPipeBinding, which provides for communication on the same machine using named pipes. You can find some more information here: http://msdn.microsoft.com/en-us/library/system.servicemodel.netnamedpipebinding.aspx

    As well, here is a reasonably concise blog entry demonstrating it's use (from a WMP plug-in to a third-party app).

    Based on your description of the application, you could establish a WCF service in the first AppDomain then call into that service from the second AppDomain.

    0 讨论(0)
提交回复
热议问题