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(); }
static bool IsServiceRunning(string srvName) { return(Srvany.IsServiceRunning(srvName)); }