Example #1
0
 public void Dispose()
 {
     if (_reader != null)
     {
         logger.Trace("Disposing Reader");
         _reader?.Dispose();
     }
 }
Example #2
0
        public void Dispose()
        {
            if (reader != null)
            {
                if (IsCardOpened)
                {
                    try
                    {
                        CloseCard();
                    }
                    catch (Exception ex)
                    {
                        log.Error(ex);
                    }
                }

                try
                {
                    reader.Dispose();
                }
                catch (Exception ex)
                {
                    log.Error(ex);
                }
                finally { reader = null; }
            }

            if (context != null)
            {
                try
                {
                    context.Dispose();
                }
                catch (Exception ex)
                {
                    log.Error(ex);
                }
                finally { context = null; }
            }
        }
Example #3
0
 public void Dispose()
 {
     _isoReader.Dispose();
     _context.Dispose();
 }