Example #1
0
 public void Dispose()
 {
     foreach (SCPCardReader CardReader in this.Readers)
     {
         CardReader.Dispose();
     }
 }
Example #2
0
 public void PostRun()
 {
     if (_Reader != null)
     {
         _Reader.Dispose();
         _Reader = null;
     }
     if (_Readers != null)
     {
         _Readers.Dispose();
         _Readers = null;
     }
 }
Example #3
0
 protected override void BecauseOf()
 {
     _sut.Dispose();
 }
Example #4
0
 private void CardRemoved(CardStatusEventArgs args)
 {
     _reader?.Dispose();
     _reader       = null;
     IsCardPResent = false;
 }
Example #5
0
 protected override void OnStop()
 {
     _reader?.Dispose();
     base.OnStop();
 }