private void Dispose(bool isDisposing) { Report.Notify(new DetectorMessage(Codes.INFO_DET_CLN)); if (!_isDisposed) { if (isDisposing) { NLog.LogManager.Flush(); } Disconnect(); } _isDisposed = true; PairedXemoDevice?.Dispose(); }
public void DisableXemo() { PairedXemoDevice?.Dispose(); PairedXemoDevice = null; IsXemoEnabled = false; }