mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
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:
committed by
GitHub
parent
81551104ce
commit
63d989cab4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user