From 09e5635e174d3ee6e8b699f7d0d4f125d3e1c46f Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 06 五月 2024 09:47:26 +0800 Subject: [PATCH] 修复运行分析bug --- Yw.TopShelf.Run/Program.cs | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Yw.TopShelf.Run/Program.cs b/Yw.TopShelf.Run/Program.cs index 27684c3..782ace5 100644 --- a/Yw.TopShelf.Run/Program.cs +++ b/Yw.TopShelf.Run/Program.cs @@ -16,13 +16,26 @@ //SMI +//HostFactory.Run(x => +//{ +// x.Service<Service>(); +// x.RunAsLocalSystem(); +// x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(SMI)"); +// x.SetDisplayName("IStation.Core.Server.Run.SMI"); +// x.SetServiceName("IStation.Core.Server.Run.SMI"); +// x.EnableServiceRecovery(r => r.RestartService(TimeSpan.FromSeconds(120))); +// x.StartAutomatically(); +//}); + + +//PHM HostFactory.Run(x => { x.Service<Service>(); x.RunAsLocalSystem(); - x.SetDescription("鏅烘収娉电珯Core鐗堣繍琛屽垎鏋愮▼搴�(SMI)"); - x.SetDisplayName("IStation.Core.Server.Run.SMI"); - x.SetServiceName("IStation.Core.Server.Run.SMI"); + 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