/// <summary> /// Disposes a pipe connection by closing the underlying native handle. /// </summary> /// <param name="disposing">A boolean indicating how the method is called.</param> #endregion protected void Dispose(bool disposing) { if (!this.disposed) { NamedPipeWrapper.Close(this.Handle); } disposed = true; }
/// <summary> /// Closes the operating system native handle of the named pipe. /// </summary> #endregion public override void Close() { CheckIfDisposed(); NamedPipeWrapper.Close(this.Handle); }