Exemple #1
0
 public void Dispose()
 {
     if (_reader != null)
     {
         logger.Trace("Disposing Reader");
         _reader?.Dispose();
     }
 }
Exemple #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; }
            }
        }
 public void Dispose()
 {
     _isoReader.Dispose();
     _context.Dispose();
 }