示例#1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (tcpClient != null)
     {
         tcpClient.Close();
         tcpClient = null;
     }
     if (outputPump != null)
     {
         outputPump.Dispose();
         outputPump = null;
     }
 }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (pipeServer != null)
     {
         pipeServer.Close();
         pipeServer = null;
     }
     if (outputPump != null)
     {
         outputPump.Dispose();
         outputPump = null;
     }
 }