Пример #1
0
 static void Main(string[] args)
 {
     while (true)
     {
         var name = Console.ReadLine();
         var sh = new ServiceManager.ServiceHelper(name);
         sh.ServiceStatusChanged += sh_ServiceStatusChanged;
         sh.Start();
     }
 }
Пример #2
0
 static void Main(string[] args)
 {
     while (true)
     {
         var name = Console.ReadLine();
         var sh   = new ServiceManager.ServiceHelper(name);
         sh.ServiceStatusChanged += sh_ServiceStatusChanged;
         sh.Start();
     }
 }