Program.cs 553 B

12345678910111213141516171819202122232425
  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 MSHO.Collection.Service
  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 MainService()
  20. };
  21. ServiceBase.Run(ServicesToRun);
  22. }
  23. }
  24. }