From c9e3a7f0c154892f2327e300e28af53f81e40ad0 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 20 2月 2025 11:03:24 +0800
Subject: [PATCH] 软件加密+ 修复 不断给plc报警的问题
---
SDA/iWareSda/SdaMainForm.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/SDA/iWareSda/SdaMainForm.cs b/SDA/iWareSda/SdaMainForm.cs
index efdfe98..bfd8314 100644
--- a/SDA/iWareSda/SdaMainForm.cs
+++ b/SDA/iWareSda/SdaMainForm.cs
@@ -12,7 +12,7 @@
using System.Linq;
using iWareCommon;
using Newtonsoft.Json.Linq;
-
+using System.Threading.Tasks;
namespace iWareSda
{
@@ -108,8 +108,11 @@
{
#region 瀵瑰鍙戝竷WCF褰㈠紡鏁版嵁璁块棶鏈嶅姟
- var StationServiceHost = new ServiceHost(typeof(iWareSda.StationService));
- StationServiceHost.Open();
+ Task.Run(() =>
+ {
+ var StationServiceHost = new ServiceHost(typeof(iWareSda.StationService));
+ StationServiceHost.Open();
+ });
#endregion
--
Gitblit v1.9.3