From 04d10bce51a6272d02a4a0f1b05a4f64bf73f273 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 05 8月 2025 16:48:03 +0800 Subject: [PATCH] 休眠10秒 ,2秒改为10秒 【Editby shaocx,2025-08-05】 --- SDA/iWareSda/SdaMainForm.cs | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/SDA/iWareSda/SdaMainForm.cs b/SDA/iWareSda/SdaMainForm.cs index 9a1bae9..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 @@ -355,7 +358,7 @@ } //璧嬪�兼姤璀� - s.View.R_WarningDBList = s.GetAlertDatas(); + //s.View.R_WarningDBList = s.GetAlertDatas(); //s.IsConnected = s.plcService.IsConnected; ////鍖哄煙1 -- Gitblit v1.9.3