示例#1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if DEBUG
            var wearherParser = new WeatherParser();
            wearherParser.Start();
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new WeatherParser()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }
示例#2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     #if DEBUG
     var wearherParser = new WeatherParser();
     wearherParser.Start();
     #else
     ServiceBase[] ServicesToRun;
     ServicesToRun = new ServiceBase[]
     {
         new WeatherParser()
     };
     ServiceBase.Run(ServicesToRun);
     #endif
 }