Example #1
0
        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();
            }
        }
 public ServiceWrapper()
 {
     this.InitializeComponent();
     this.updateService = new DnsUpdateService();
 }