From 635e27abcbe6a721f259e03e22f010ed9f2ad96d Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 02 九月 2024 11:51:54 +0800
Subject: [PATCH] 引用升级

---
 Yw.TopShelf.Run/Program.cs |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/Yw.TopShelf.Run/Program.cs b/Yw.TopShelf.Run/Program.cs
index 5ccd399..782ace5 100644
--- a/Yw.TopShelf.Run/Program.cs
+++ b/Yw.TopShelf.Run/Program.cs
@@ -16,29 +16,29 @@
 
 
 //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鐗堣繍琛屽垎鏋愮▼搴�(PHM)");
-//    x.SetDisplayName("IStation.Core.Server.Run.PHM");
-//    x.SetServiceName("IStation.Core.Server.Run.PHM");
+//    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鐗堣繍琛屽垎鏋愮▼搴�(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