public void Dispose() { running = false; source.Close(); connection.Dispose(); }
private void Stop() { source.Close(); connection.Dispose(); Stopped("", new RunLoopStoppedEventArgs(RunLoopStopType.Graceful)); }