Example #1
0
 public async Task Stop(Process p)
 {
     await Task.Run(() =>
     {
         if (p.StartInfo.RedirectStandardInput)
         {
             p.StandardInput.WriteLine("/stop");
         }
         else
         {
             ServerConsole.SendMessageToMainWindow(p.MainWindowHandle, "/stop");
         }
     });
 }