static void Main(string[] args) { while (true) { var name = Console.ReadLine(); var sh = new ServiceManager.ServiceHelper(name); sh.ServiceStatusChanged += sh_ServiceStatusChanged; sh.Start(); } }