From a2f8c1434ba06a5231c4f9f8bc9373402f4228f7 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 27 三月 2025 20:38:56 +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