Browse Source

🔍 Renamed to NamedPipeServer for clarity.

tags/4.2.0.0
database64128 4 years ago
parent
commit
4bd33db1ae
3 changed files with 6 additions and 7 deletions
  1. +1
    -2
      shadowsocks-csharp/Controller/Service/NamedPipeServer.cs
  2. +3
    -3
      shadowsocks-csharp/Program.cs
  3. +2
    -2
      shadowsocks-csharp/shadowsocks-csharp.csproj

shadowsocks-csharp/Controller/Service/PipeServer.cs → shadowsocks-csharp/Controller/Service/NamedPipeServer.cs View File

@@ -16,8 +16,7 @@ namespace Shadowsocks.Controller
} }
} }



internal class PipeServer
internal class NamedPipeServer
{ {
public event EventHandler<RequestAddUrlEventArgs> AddUrlRequested; public event EventHandler<RequestAddUrlEventArgs> AddUrlRequested;
public async void Run(string path) public async void Run(string path)

+ 3
- 3
shadowsocks-csharp/Program.cs View File

@@ -148,9 +148,9 @@ namespace Shadowsocks
HotKeys.Init(MainController); HotKeys.Init(MainController);
MainController.Start(); MainController.Start();


PipeServer pipeServer = new PipeServer();
Task.Run(() => pipeServer.Run(pipename));
pipeServer.AddUrlRequested += (_1, e) => MainController.AskAddServerBySSURL(e.Url);
NamedPipeServer namedPipeServer = new NamedPipeServer();
Task.Run(() => namedPipeServer.Run(pipename));
namedPipeServer.AddUrlRequested += (_1, e) => MainController.AskAddServerBySSURL(e.Url);
if (!addedUrl.IsNullOrEmpty()) if (!addedUrl.IsNullOrEmpty())
{ {
MainController.AskAddServerBySSURL(addedUrl); MainController.AskAddServerBySSURL(addedUrl);


+ 2
- 2
shadowsocks-csharp/shadowsocks-csharp.csproj View File

@@ -113,8 +113,8 @@
<Compile Include="Controller\HotkeyReg.cs" /> <Compile Include="Controller\HotkeyReg.cs" />
<Compile Include="Controller\LoggerExtension.cs" /> <Compile Include="Controller\LoggerExtension.cs" />
<Compile Include="Controller\Service\PACDaemon.cs" /> <Compile Include="Controller\Service\PACDaemon.cs" />
<Compile Include="Controller\Service\PipeServer.cs" />
<Compile Include="Controller\System\ProtocolHandler.cs" />
<Compile Include="Controller\Service\NamedPipeServer.cs" />
<Compile Include="Controller\System\ProtocolHandler.cs" />
<Compile Include="Controller\System\Hotkeys\HotkeyCallbacks.cs" /> <Compile Include="Controller\System\Hotkeys\HotkeyCallbacks.cs" />
<Compile Include="Encryption\AEAD\AEADEncryptor.cs" /> <Compile Include="Encryption\AEAD\AEADEncryptor.cs" />
<Compile Include="Encryption\AEAD\AEADMbedTLSEncryptor.cs" /> <Compile Include="Encryption\AEAD\AEADMbedTLSEncryptor.cs" />


Loading…
Cancel
Save