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