| 1234567891011121314151617181920212223242526272829 |
-
- using System.ServiceProcess;
- namespace PLC_WS_1
- {
- static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- static void Main(string[] args)
- {
- //if (args.IsNullOrEmpty())
- //{
- // Logger.Debug("Program args is null");
- //}
- //else
- //{
- // Logger.Debug("Program args is " + JsonHelper.FromObject(args));
- //}
- ServiceBase[] ServicesToRun;
- ServicesToRun = new ServiceBase[]
- {
- new Service1()
- };
- ServiceBase.Run(ServicesToRun);
- }
- }
- }
|