|
@@ -142,11 +142,7 @@ namespace PRSServer
|
|
|
public override void Run()
|
|
|
{
|
|
|
Logger.Send(LogType.Information, "", "Starting..");
|
|
|
-
|
|
|
-
|
|
|
- if (Properties.Port.Equals(0))
|
|
|
- throw new Exception("Error: Port not Specified\n");
|
|
|
-
|
|
|
+
|
|
|
if (string.IsNullOrEmpty(Properties.FileName))
|
|
|
throw new Exception("Error: Filename not Specified\n");
|
|
|
|
|
@@ -231,13 +227,9 @@ namespace PRSServer
|
|
|
RestListener.Start();
|
|
|
Logger.Send(LogType.Information, "", $"- Rest Listener Started: Port={Properties.Port}");
|
|
|
}
|
|
|
-
|
|
|
- // Older-Style Pipe (IPC Server)
|
|
|
- _ipcServer = new IPCServer(_ipcPipeName);
|
|
|
- _ipcServer.Start();
|
|
|
- Logger.Send(LogType.Information, "", $"- IPC Pipe Listener started: Name=[{_ipcPipeName}]");
|
|
|
|
|
|
- // New Style Socket Listenet
|
|
|
+
|
|
|
+ // New Style Socket Listener
|
|
|
if (Properties.RPCPort != 0)
|
|
|
{
|
|
|
var sockettransport = new RpcServerSocketTransport(Properties.RPCPort); //, certificate);
|
|
@@ -248,6 +240,11 @@ namespace PRSServer
|
|
|
Logger.Send(LogType.Information, "", $"- RPC Listener Started: Port={Properties.RPCPort}");
|
|
|
}
|
|
|
|
|
|
+ // Older-Style Pipe (IPC Server)
|
|
|
+ _ipcServer = new IPCServer(_ipcPipeName);
|
|
|
+ _ipcServer.Start();
|
|
|
+ Logger.Send(LogType.Information, "", $"- IPC Pipe Listener started: Name=[{_ipcPipeName}]");
|
|
|
+
|
|
|
// New Style Pipe (RPC) Listener
|
|
|
var pipetransport = new RpcServerPipeTransport(_rpcPipeName);
|
|
|
PushManager.AddPusher(pipetransport);
|