Example #1
0
 /// <summary>Cancels the monitoring of all readers that are currently being monitored.</summary>
 /// <remarks>This will end the monitoring. The method calls the <see cref="ISCardContext.Cancel()" /> method of its Application Context to the PC/SC Resource Manager.</remarks>
 public void Cancel()
 {
     lock (_sync) {
         if (_monitoring && _context.IsValid())
         {
             _context.Cancel();
         }
     }
 }
Example #2
0
        /// <summary>Cancels the monitoring.</summary>
        /// <remarks>This will end the monitoring. The method calls the <see cref="ISCardContext.Cancel()" /> method of its Application Context to the PC/SC Resource Manager.</remarks>
        public void Cancel()
        {
            if (_isDisposed)
            {
                return;
            }

            lock (_gate) {
                _ctx?.Cancel();
                _thread = null;
            }
        }
Example #3
0
        /// <summary>Cancels the monitoring of all readers that are currently being monitored.</summary>
        /// <remarks>This will end the monitoring. The method calls the <see cref="ISCardContext.Cancel()" /> method of its Application Context to the PC/SC Resource Manager.</remarks>
        public void Cancel()
        {
            lock (_sync) {
                if (!_monitoring)
                {
                    return;
                }

                _context.Cancel();
                _readernames        = null;
                _previousStateValue = null;
                _previousState      = null;

                _monitoring = false;
            }
        }