Program.cs 515 B

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