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