From 20529bc6bc67d63c5f248fbe923558efb57a435b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 13:43:37 +0800
Subject: [PATCH] feat(SignalR): 创建 StockHub 实现库存实时更新

---
 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