Пример #1
0
        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();
        }
Пример #2
0
 public void DisableXemo()
 {
     PairedXemoDevice?.Dispose();
     PairedXemoDevice = null;
     IsXemoEnabled    = false;
 }