How to interact inside an application in .NET.

What is the best way to transfer data from one Windows Forms application (office plugin) to another (exe written in C #) in C #?

+3
source share
6 answers

I will take a wild hit and say that you probably want the office application to call home to your exe? In this context, exe is the server, and the office application is the client.

If you are using .NET 3.0, WCF is most likely your best bet. I would build a solution in three parts:

  • " " . , . , , . . . "" " .
  • "". "exe" , . ServiceClient . , ServiceClient ( -, tcp ..). . " " .
  • "". " " - . svcutil.exe.

"exe" "plugin" , .

, " " -. , .

WCF .

+7
+2

. WCF - . iDesign.net InProcFactory. , . .

IPC, .

-

+2

WCF - . , , - , .

.

+1

. . .NET( 3.0?), .

+1

Source: https://habr.com/ru/post/1698664/


All Articles