using ServiceDeamon; using System.Configuration; using System.ServiceProcess; var servName = ConfigurationManager.AppSettings["ServiceName"]; //Timer t = new System.Threading.Timer((sta) => //{ // CheckServiceHelper.CheckStatus(servName); //}); //t.Change(1000,)