static void Main(string[] args) { ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new Service1() }; ServiceBase.Run(ServicesToRun); Monitoring.Update(); }
static void Main(string[] args) { Monitoring.Update(); }