コード例 #1
0
 private void StopServerPipe()
 {
     try
     {
         ClientPipeConnection pipe = new ClientPipeConnection(_pipeName);
         if (pipe.TryConnect())
         {
             pipe.Close();
         }
     }
     catch
     {
         // Log exception
     }
 }
コード例 #2
0
 private void StopServerPipe()
 {
     try
     {
         ClientPipeConnection pipe = new ClientPipeConnection(_pipeName);
         if (pipe.TryConnect())
         {
             pipe.Close();
         }
     }
     catch
     {
         // Log exception
     }
 }