From 49ab80b222ad2f5a17b419e7140158478447b997 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 13 五月 2024 09:49:52 +0800 Subject: [PATCH] 引用升级 --- Yw.TopShelf.Run/Program.cs | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Yw.TopShelf.Run/Program.cs b/Yw.TopShelf.Run/Program.cs index 782ace5..a3a1b0c 100644 --- a/Yw.TopShelf.Run/Program.cs +++ b/Yw.TopShelf.Run/Program.cs @@ -3,16 +3,16 @@ using Topshelf; //SZJT -//HostFactory.Run(x => -//{ -// x.Service<Service>(); -// x.RunAsLocalSystem(); -// x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(SZJT)"); -// x.SetDisplayName("IStation.Core.Server.Run.SZJT"); -// x.SetServiceName("IStation.Core.Server.Run.SZJT"); -// x.EnableServiceRecovery(r => r.RestartService(TimeSpan.FromSeconds(120))); -// x.StartAutomatically(); -//}); +HostFactory.Run(x => +{ + x.Service<Service>(); + x.RunAsLocalSystem(); + x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(SZJT)"); + x.SetDisplayName("IStation.Core.Server.Run.SZJT"); + x.SetServiceName("IStation.Core.Server.Run.SZJT"); + x.EnableServiceRecovery(r => r.RestartService(TimeSpan.FromSeconds(120))); + x.StartAutomatically(); +}); //SMI @@ -29,16 +29,16 @@ //PHM -HostFactory.Run(x => -{ - x.Service<Service>(); - x.RunAsLocalSystem(); - x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(PHM)"); - x.SetDisplayName("IStation.Core.Server.Run.PHM"); - x.SetServiceName("IStation.Core.Server.Run.PHM"); - x.EnableServiceRecovery(r => r.RestartService(TimeSpan.FromSeconds(120))); - x.StartAutomatically(); -}); +//HostFactory.Run(x => +//{ +// x.Service<Service>(); +// x.RunAsLocalSystem(); +// x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(PHM)"); +// x.SetDisplayName("IStation.Core.Server.Run.PHM"); +// x.SetServiceName("IStation.Core.Server.Run.PHM"); +// x.EnableServiceRecovery(r => r.RestartService(TimeSpan.FromSeconds(120))); +// x.StartAutomatically(); +//}); -- Gitblit v1.9.3