From 1caea0fdc7ed1788d854a2aba8853984b4494e01 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 24 六月 2025 09:56:28 +0800
Subject: [PATCH] 代码提交

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs"
index c7bbcc6..e008007 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs"
@@ -19,6 +19,7 @@
 using WIDESEA_Core.Core;
 using Autofac.Core;
 using Microsoft.AspNetCore.Builder;
+using WIDESEA_Core.QuartzJob;
 
 var builder = WebApplication.CreateBuilder(args);
 
@@ -43,6 +44,9 @@
 //builder.Services.AddInitializationHostServiceSetup();//应用初始化服务注入
 builder.Services.AddDbSetup();//Db 启动服务
 
+builder.Services.AddJobSetup();
+builder.Services.AddHostedService<QuartzJobHostedService>();
+
 builder.Services.AddAutoMapperSetup();
 
 builder.Services.AddCorsSetup();

--
Gitblit v1.9.3