Exemple #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            if (Environment.UserInteractive)
            {
                WheatherCore.ForDebug();
            }
            else
            {
                ServiceBase[] ServicesToRun;

                ServicesToRun = new ServiceBase[]
                {
                    new ServiceWheather()
                };

                ServiceBase.Run(ServicesToRun);
            }
        }
Exemple #2
0
 protected override void OnStop()
 {
     WheatherCore.DisposeObject();
 }
Exemple #3
0
 protected override void OnStart(string[] args)
 {
     WheatherCore.CreateObject();
 }