protected override void Dispose(bool disposing) { Thread.UnregisterManager(this); OnNewDevice = null; OnLostDevice = null; base.Dispose(disposing); }
protected override void Dispose(bool disposing) { cancellationTokenSource.Cancel(); Thread.UnregisterManager(this); OnNewDevice = null; OnLostDevice = null; base.Dispose(disposing); }