From 9719a7f0ccbb70e4e51a93cbe1733d1424c16f6d Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期五, 06 十二月 2024 12:03:56 +0800
Subject: [PATCH] 优化Api数据库缓存模块,增加MES岗位缓存跟不良代码缓存

---
 Tiger.Api/ApiWebHostService.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Tiger.Api/ApiWebHostService.cs b/Tiger.Api/ApiWebHostService.cs
index be53ff7..3c6a088 100644
--- a/Tiger.Api/ApiWebHostService.cs
+++ b/Tiger.Api/ApiWebHostService.cs
@@ -7,6 +7,7 @@
 using Rhea.Common;
 using Tiger.IBusiness;
 using System.ServiceProcess;
+using Tiger.Api.DbCache;
 
 namespace Tiger.Api
 {
@@ -55,9 +56,10 @@
                 //鍏抽棴鏈嶅姟鎬荤嚎
                 DI.Resolve<IServicesBus>().StopServices();
                 //鍏抽棴DB缂撳瓨鑷姩鏇存柊
-                DI.Resolve<IDbCacheBus>().StopAutoUpdate();
+                //DI.Resolve<IDbCacheBus>().StopAutoUpdate();
+                DbCacheBus.StopAutoUpdate();
                 //MQTTHelper.MQTTConn?.Close();
-	            base.OnStopping();
+                base.OnStopping();
             }
             catch (System.Exception ex)
             {

--
Gitblit v1.9.3