// Copyright (c) 2017 Informatikbüro Daniel Schick // using System.Diagnostics; using System.ServiceProcess; namespace bsmd.ExcelReadService { internal static class Program { /// /// The main entry point for the application. /// private static void Main() { ServiceBase[] ServicesToRun; log4net.Config.XmlConfigurator.Configure(); ServicesToRun = new ServiceBase[] { new ExcelReadService() }; if (Debugger.IsAttached) { // Confirmation.InitDictionaries(); ((ExcelReadService)ServicesToRun[0]).DoOnce(); } else { ServiceBase.Run(ServicesToRun); } } } }