private void OnClientConnected(NamedPipeConnection <byte[], byte[]> connection) { Log($"Client {connection.Id} connected"); if (_connection != null) { Log("Previous Connection is now ignored!"); } _connection = new BoardSimulation(); }
private void OnClientDisconnected(NamedPipeConnection <byte[], byte[]> connection) { Log($"Client {connection.Id} disconnected"); _connection = null; }