You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
546 B

2 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceProcess;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace TimingTask
  8. {
  9. static class Program
  10. {
  11. /// <summary>
  12. /// 应用程序的主入口点。
  13. /// </summary>
  14. static void Main()
  15. {
  16. ServiceBase[] ServicesToRun;
  17. ServicesToRun = new ServiceBase[]
  18. {
  19. new TimingTaskService()
  20. };
  21. ServiceBase.Run(ServicesToRun);
  22. }
  23. }
  24. }