From 4fa92d8a2bb207029564ff33c3faf84ea9b814ed Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期三, 19 三月 2025 17:05:52 +0800 Subject: [PATCH] 优化接口逻辑 --- 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