Exemplo n.º 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main()
        {
#if (!DEBUG)
            var ServicesToRun = new ServiceBase[]
            {
                new gtfsrt_events_vp_current_status_service()
            };
            ServiceBase.Run(ServicesToRun);
#else
            var service = new gtfsrt_events_vp_current_status_service();
            service.StartGTFSRealtimeService();
#endif
        }
Exemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 private static void Main(string[] args)
 {
     if (args.Length > 0 && args[0] == "noservice")
     {
         var service = new gtfsrt_events_vp_current_status_service();
         gtfsrt_events_vp_current_status_service.StartGTFSRealtimeService();
     }
     else
     {
         var ServicesToRun = new ServiceBase[]
         {
             new gtfsrt_events_vp_current_status_service()
         };
         ServiceBase.Run(ServicesToRun);
     }
 }