/// <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); } }
protected override void OnStop() { WheatherCore.DisposeObject(); }
protected override void OnStart(string[] args) { WheatherCore.CreateObject(); }