Ejemplo n.º 1
0
        /// </summary>
        static void Main(string[] args)
        {
            bool debug = false;

            System.Diagnostics.Debugger.Launch();

            if (debug)
            {
                deliveryNoteService svc = new deliveryNoteService();
                svc.OnStart();
                System.Threading.Thread.Sleep(100000);//
                return;
            }

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                //new deliveryNoteService();
            };
            ReadHtmlTemplate();
            StartHtpListener();
            ServicesToRun = new ServiceBase[]
            {
                new deliveryNoteService()
            };
            ServiceBase.Run(ServicesToRun);


            StopHtpListener();
        }
Ejemplo n.º 2
0
 /// </summary>
 public static void Main(string[] args)
 {
     ServiceBase[] ServicesToRun;
     svc           = new deliveryNoteService();
     ServicesToRun = new ServiceBase[]
     {
         svc
     };
     ReadHtmlTemplate();
     StartHtpListener();
     ServiceBase.Run(ServicesToRun);
     StopHtpListener();
 }