From 8c17893ca9f35eb80b93b2cd2a850f9499a1ff8f Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期五, 26 四月 2024 15:38:48 +0800
Subject: [PATCH] 引用升级

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

diff --git a/Yw.TopShelf.Run/Program.cs b/Yw.TopShelf.Run/Program.cs
index 5f7e07f..27684c3 100644
--- a/Yw.TopShelf.Run/Program.cs
+++ b/Yw.TopShelf.Run/Program.cs
@@ -3,18 +3,29 @@
 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();
+//});
+
+
+//SMI
 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.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();
 });
-
-
 
 
 

--
Gitblit v1.9.3