예제 #1
0
파일: Program.cs 프로젝트: Knuhl/aDrums
 private void OnClientConnected(NamedPipeConnection <byte[], byte[]> connection)
 {
     Log($"Client {connection.Id} connected");
     if (_connection != null)
     {
         Log("Previous Connection is now ignored!");
     }
     _connection = new BoardSimulation();
 }
예제 #2
0
파일: Program.cs 프로젝트: Knuhl/aDrums
 private void OnClientDisconnected(NamedPipeConnection <byte[], byte[]> connection)
 {
     Log($"Client {connection.Id} disconnected");
     _connection = null;
 }