Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     #if DEBUG
     SendAll myService = new SendAll();
     myService.onDebug();
     System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
     #else
     ServiceBase[] ServicesToRun;
     ServicesToRun = new ServiceBase[]
     {
         new SendAll()
     };
     ServiceBase.Run(ServicesToRun);
     #endif
 }
Ejemplo n.º 2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if DEBUG
            SendAll myService = new SendAll();
            myService.onDebug();
            System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new SendAll()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }