using System.Diagnostics; using System.ServiceProcess; namespace bsmd.herberg.FormService { static class Program { /// /// The main entry point for the application. /// static void Main() { ServiceBase[] ServicesToRun; log4net.Config.XmlConfigurator.Configure(); ServicesToRun = new ServiceBase[] { new FormService() }; if (Debugger.IsAttached) { // ((FormService)ServicesToRun[0]).Init(null); ((FormService)ServicesToRun[0]).DoOnce(); } else { ServiceBase.Run(ServicesToRun); } } } }