Program.cs 694 B

1234567891011121314151617181920212223242526272829
  1. 
  2. using System.ServiceProcess;
  3. namespace PLC_WS_1
  4. {
  5. static class Program
  6. {
  7. /// <summary>
  8. /// 应用程序的主入口点。
  9. /// </summary>
  10. static void Main(string[] args)
  11. {
  12. //if (args.IsNullOrEmpty())
  13. //{
  14. // Logger.Debug("Program args is null");
  15. //}
  16. //else
  17. //{
  18. // Logger.Debug("Program args is " + JsonHelper.FromObject(args));
  19. //}
  20. ServiceBase[] ServicesToRun;
  21. ServicesToRun = new ServiceBase[]
  22. {
  23. new Service1()
  24. };
  25. ServiceBase.Run(ServicesToRun);
  26. }
  27. }
  28. }