// Copyright (c) 2020-present schick Informatik // Description: Tool main entry point using System.Diagnostics; using System.ServiceProcess; namespace bsmd.POService { internal static class Program { /// /// The main entry point for the application. /// public static void Main() { ServiceBase[] ServicesToRun; log4net.Config.XmlConfigurator.Configure(); ServicesToRun = new ServiceBase[] { new POService() }; if (Debugger.IsAttached) { ((POService)ServicesToRun[0]).DoOnce(); } else { ServiceBase.Run(ServicesToRun); } } } }