Example #1
0
 /// <summary>
 /// protected implementation of Dispose pattern.
 /// </summary>
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         _reader.Dispose();
     }
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         httpResponse?.Dispose();
         reader?.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         reader?.Dispose();
         streamReader?.Dispose();
     }
     base.Dispose(disposing);
 }
Example #4
0
        /// <summary>
        /// protected implementation of Dispose pattern.
        /// </summary>
        private void Dispose(bool disposing)
        {
            lock (this)
            {
                if (_isDisposed)
                {
                    return;
                }

                if (disposing)
                {
                    // Free any other managed objects here.
                    _reader.Dispose();
                }

                // Free any unmanaged objects here.
                _isDisposed = true;
            }
        }
 public void Dispose()
 {
     _reader?.Dispose();
     _stream?.Dispose();
 }
Example #6
0
 public void Dispose()
 {
     _reader?.Dispose();
     _dbStream?.Dispose();
     _indexStream?.Dispose();
 }
 public void Dispose()
 {
     _reader.Dispose();
     _blockStream.Dispose();
 }
Example #8
0
 private void Close()
 {
     _reader.Dispose();
 }
 public void Dispose() => _reader?.Dispose();
Example #10
0
 public void Dispose()
 {
     _reader.Dispose();
     _stream.Dispose();
 }
Example #11
0
 public void Dispose()
 {
     _writer?.Dispose();
     _blockReader?.Dispose();
     _blockStream?.Dispose();
 }
Example #12
0
 public void Dispose()
 {
     _nsaStream?.Dispose();
     _reader?.Dispose();
     _memStream?.Dispose();
 }