public override void UpdateStatus()
 {
     if (!string.IsNullOrWhiteSpace(selfFullExcutableFilePath))
     {
         if (Srvany.IsServiceRunning(WATCHDOG_SERVICE_NAME))
         {
             if (!Srvany.IsProcessExists(selfFullExcutableFilePath))
             {
                 Srvany.StopService(WATCHDOG_SERVICE_NAME);
             }
         }
     }
     base.UpdateStatus();
 }
Esempio n. 2
0
 static bool IsServiceRunning(string srvName)
 {
     return(Srvany.IsServiceRunning(srvName));
 }