Esempio n. 1
0
 /// <summary>
 /// Stop background processes
 /// </summary>
 public void Stop()
 {
     try
     {
         if (ascRunner != null && ascRunner.IsRunning)
         {
             ascRunner.KillProcess();
         }
     }
     catch { }
     finally
     {
         ascRunner = null;
     }
     try
     {
         if (mxmlcRunner != null && mxmlcRunner.IsRunning)
         {
             mxmlcRunner.KillProcess();
         }
     }
     catch { }
     finally
     {
         mxmlcRunner = null;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Stop background processes
 /// </summary>
 public void Stop()
 {
     if (ascRunner != null && ascRunner.IsRunning)
     {
         ascRunner.KillProcess();
     }
     ascRunner = null;
     if (mxmlcRunner != null && mxmlcRunner.IsRunning)
     {
         mxmlcRunner.KillProcess();
     }
     mxmlcRunner = null;
 }