public void Dispose() { ShutdownConsole(); if (thread != null) { if (thread.Join(100)) { thread = null; IsRunning = false; } } }
public void Join() { thread.Join(); }