예제 #1
0
 /// <summary>Disconnects the currently connected reader.</summary>
 /// <param name="disposition">The action that shall be executed after disconnect.</param>
 public virtual void Disconnect(SCardReaderDisposition disposition)
 {
     if (_reader != null)
     {
         _reader.Disconnect(disposition);
     }
 }
예제 #2
0
 /// <summary>Disconnects the currently connected reader.</summary>
 /// <param name="disposition">The action that shall be executed after disconnect.</param>
 public virtual void Disconnect(SCardReaderDisposition disposition)
 {
     _reader?.Disconnect(disposition);
 }
 private void Close()
 {
     reader.Disconnect(SCardReaderDisposition.Leave);
     context.Release();
 }