private static void RunInConsole() { using (var updateService = new DnsUpdateService()) { updateService.Start(); log.Info("Service started"); Console.WriteLine("Press any key to quit..."); Console.ReadKey(true); updateService.Stop(); } }
private static void RunInConsole() { using (var updateService = new DnsUpdateService()) { updateService.Start(); log.Info("Service started"); Console.WriteLine("Press any key to quit..."); Console.ReadKey(true); updateService.Stop(); } }