From 1f15dd43b334e31189c4580b98f57d2cc71935d8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 14:11:23 +0800
Subject: [PATCH] refactor(StockInfo): 重构 Get3DLayoutAsync 使用依赖注入服务

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs
index e5332e1..59cbd0a 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs
@@ -99,6 +99,8 @@
     options.Filters.Add(typeof(ActionExecuteFilter));
 });
 
+builder.Services.AddSignalR();
+
 builder.Services.AddScoped<HttpClientHelper>();
 
 builder.Services.AddAuthorizationSetup();
@@ -174,4 +176,6 @@
 
 app.MapControllers();
 
+app.MapHub<WIDESEA_WMSServer.Hubs.StockHub>("/stockHub");
+
 app.Run();

--
Gitblit v1.9.3