Beispiel #1
0
 public void Stop()
 {
     _rs28Device?.Close();
     _deviceListener.Stop();
     _deviceListener.DeviceDisconnected -= DevicePoller_DeviceDisconnected;
     _deviceListener.DeviceInitialized  -= DevicePoller_DeviceInitialized;
 }
        private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (_deviceListener.IsActive)
            {
                SetStatus("Stop device listener ..");

                _deviceListener.Stop();
            }

            SetStatus("Done");
        }
Beispiel #3
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            _Lock.Dispose();
            _DeviceListener.Stop();
            _DeviceListener.Dispose();

            foreach (var trezorManager in TrezorManagers)
            {
                trezorManager.Dispose();
            }

            GC.SuppressFinalize(this);
        }
Beispiel #4
0
        public void Dispose()
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            _Lock.Dispose();
            _DeviceListener.Stop();
            _DeviceListener.Dispose();

            foreach (var LedgerManager in LedgerManagers)
            {
                LedgerManager.Dispose();
            }

            GC.SuppressFinalize(this);
        }
Beispiel #5
0
 public void Stop() => _DeviceListener?.Stop();