/// <summary> /// Starts a new NamedPipeServerStream that waits for connection /// </summary> private void StartNamedPipeServer() { var server = new InternalPipeServer(_pipeName, MaxNumberOfServerInstances); _servers[server.Id] = server; server.ClientConnectedEvent += ClientConnectedHandler; server.ClientDisconnectedEvent += ClientDisconnectedHandler; server.MessageReceivedEvent += MessageReceivedHandler; server.Start(); }