Deprecate ATL based IPC wrapper library (#2248)

* Deprecate ATL based IPC wrapper library

* C# projects now use named pipe server implementations from two_way_pipe_message
through the interop C++/Cli library.

* Added Unit testing to interop library
This commit is contained in:
Tomas Agustin Raies
2020-04-23 17:11:02 -07:00
committed by GitHub
parent 81551104ce
commit 63d989cab4
38 changed files with 820 additions and 1515 deletions

View File

@@ -4,14 +4,14 @@
using System;
using System.Windows;
using TwoWayIPCLibLib;
using interop;
namespace Microsoft.PowerToys.Settings.UI.Runner
{
public class Program
{
// Create an instance of the IPC wrapper.
private static ITwoWayIPCManager ipcmanager = new TwoWayIPCManager();
private static TwoWayPipeMessageIPCManaged ipcmanager;
[STAThread]
public static void Main(string[] args)
@@ -23,7 +23,8 @@ namespace Microsoft.PowerToys.Settings.UI.Runner
if (args.Length > 1)
{
ipcmanager.Initialize(args[1], args[0]);
ipcmanager = new TwoWayPipeMessageIPCManaged(args[1], args[0], null);
ipcmanager.Start();
app.Run();
}
else
@@ -37,7 +38,7 @@ namespace Microsoft.PowerToys.Settings.UI.Runner
}
}
public static ITwoWayIPCManager GetTwoWayIPCManager()
public static TwoWayPipeMessageIPCManaged GetTwoWayIPCManager()
{
return ipcmanager;
}