private void tcpDebugger_OnDebuggerClientDisconnected(object sender, DebuggerClientDisconnectedEventArgs e) { Console.WriteLine("Debugger client disconnected!"); e.DebuggerClient.ListenerThread.Abort(); e.DebuggerClient.PingThread.Abort(); tcpDebugger.Clients.Remove(e.DebuggerClient); }
protected virtual void OnDebuggerClientDisconnected(DebuggerClientDisconnectedEventArgs e) { EventHandler <DebuggerClientDisconnectedEventArgs> handler = DebuggerClientDisconnected; if (handler != null) { handler(this, e); } }