From 67abe8d2af8cf0a21d915ed62dcc4c738e9adcbc Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期五, 30 八月 2024 18:39:00 +0800
Subject: [PATCH] 增加httpclient

---
 BLL/HStation.BLL.Assets.Core/03-localclient/01-PumpProduct/PumpGroup.cs |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/BLL/HStation.BLL.Assets.Core/03-localclient/01-PumpProduct/PumpGroup.cs b/BLL/HStation.BLL.Assets.Core/03-localclient/01-PumpProduct/PumpGroup.cs
index f29b203..701995b 100644
--- a/BLL/HStation.BLL.Assets.Core/03-localclient/01-PumpProduct/PumpGroup.cs
+++ b/BLL/HStation.BLL.Assets.Core/03-localclient/01-PumpProduct/PumpGroup.cs
@@ -267,16 +267,19 @@
         /// </summary>
         /// <param name="ID"></param>
         /// <returns></returns>
-        public bool DeleteEx(long ID)
+        public async Task<bool> DeleteEx(long ID)
         {
-            if (ID > 0)
+            return await Task.Factory.StartNew(() =>
             {
-                var bol = _service.DeleteEx(ID);
-                return bol;
-            }
-            return false;
-        }
+                if (ID > 0)
+                {
+                    var bol = _service.DeleteEx(ID);
+                    return bol;
+                }
+                return false;
+            });
 
-        #endregion Delete
+            #endregion Delete
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3