protected override void Dispose(bool disposing) { if (disposing) { ReadStream.Dispose(); WriteStream.Dispose(); } base.Dispose(disposing); }
public void Close() { if (ReadStream != null) { ReadStream.Dispose(); } _client.CancelPendingRequests(); }
public void Dispose() { if (!_isDisposed) { _certificate?.Dispose(); _directory?.Dispose(); ReadStream.Dispose(); WriteStream.Dispose(); GC.SuppressFinalize(this); _isDisposed = true; } }
protected override void Dispose(bool disposing) { if (disposing && !leaveOpen) { try { ReadStream.Dispose(); } finally { WriteStream.Dispose(); } } }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { ReadStream.Dispose(); WriteStream.Dispose(); } File.Delete(Path); _disposed = true; }
protected virtual void Dispose(bool disposing) { if (disposed) { return; } if (disposing) { ReadStream.Dispose(); WriteStream.Dispose(); } System.IO.File.Delete(path); disposed = true; }
public virtual void Dispose() { _tokenSource.Cancel(); _tokenSource.Dispose(); if (ReadStream != null) { ReadStream.Dispose(); } if (WriteStream != null) { WriteStream.Dispose(); } if (Socket != null) { Socket.Dispose(); } }
public virtual void Close() { if (ReadStream != null) { ReadStream.Flush(); ReadStream.Dispose(); } if (WriteStream != null) { WriteStream.Flush(); WriteStream.Dispose(); } if (Socket != null) { Socket.Dispose(); } }
public void Dispose() { ReadStream?.Dispose(); WriteStream?.Dispose(); }
public void Dispose() { ReadStream.Dispose(); WriteStream.Dispose(); Connected = false; }
public void Dispose() { ReadStream.Dispose(); WriteStream.Dispose(); Disposed = true; }
public override void Dispose() { ReadStream?.Dispose(); fileStream?.Dispose(); }
public void SetReadStream(Stream stream, bool canDispose = true) { ReadStream?.Dispose(); ReadStream = new EncryptedStream(stream, canDispose); }
public void Dispose() { ReadStream.Dispose(); }