public static int CreatePipe() { // In order to ensure that pipe indexes start at 1 if (ActivePipes.Count == 0) { ActivePipes.Add(null); } var c = new ClientPipe(); return(c.Id); }
ClientPipe() { current_results = new List <SerializedResult>(); result_semaphores = new Dictionary <uint, Semaphore>(); pipe = new InternalClientPipe("argon_pipe_server", "."); pipe.Start(); pipe.ServerMessage += OnServerMessage; ActivePipes.Add(this); Log = new LoggerUid("IPC.ClientPipe", Id); Log.WriteLine("Waiting for connection..."); pipe.WaitForConnection(); Log.WriteLine("Connected..."); }