コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <summary>
 /// Closes a client named pipe connection.
 /// </summary>
 /// <remarks>
 /// A client pipe connection is closed by closing the underlying pipe handle.
 /// </remarks>
 #endregion
 public override void Close()
 {
     CheckIfDisposed();
     NamedPipeWrapper.Close(this.Handle);
 }