Example #1
0
 public void Dispose()
 {
     _httpClient.Dispose();
     _password.Dispose();
     _mazeServer?.Dispose();
     _mazeServer = null;
 }
Example #2
0
 private void OnCloseChannel(int channelId)
 {
     if (_mazeServer != null)
     {
         try
         {
             _mazeServer?.CloseChannel(channelId);
         }
         catch (Exception)
         {
             _mazeServer.Dispose();
             _mazeServer = null;
         }
     }
 }
 public void Dispose()
 {
     WebSocket?.Dispose();
     MazeServer?.Dispose();
 }