From 75f34e9ba2e8b249c96333f3d7936c8968e12ec7 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 11 二月 2026 14:44:12 +0800
Subject: [PATCH] 集成WMS调用与入库任务处理

---
 Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs
index a7cb7e0..29d6719 100644
--- a/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs
+++ b/Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs
@@ -25,6 +25,7 @@
 using WIDESEAWCS_QuartzJob.Seed;
 using WIDESEAWCS_Server.Filter;
 using WIDESEAWCS_Server.HostedService;
+using WIDESEAWCS_Tasks.SocketServer;
 using WIDESEAWCS_WCSServer.Filter;
 
 var builder = WebApplication.CreateBuilder(args);
@@ -73,6 +74,8 @@
 builder.Services.AddHttpContextSetup();
 
 builder.Services.AddHostedService<QuartzJobHostedService>();//任务调度 启动服务
+builder.Services.AddSingleton<TcpSocketServer>();
+builder.Services.AddHostedService<SocketServerHostedService>();
 
 builder.Services.AddMvc(options =>
 {

--
Gitblit v1.9.3