Пример #1
0
        static void Main(string[] args)
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new Service1()
            };
            ServiceBase.Run(ServicesToRun);



            Monitoring.Update();
        }
Пример #2
0
 static void Main(string[] args)
 {
     Monitoring.Update();
 }