From fd165176f2ff9b2b0ffc219e290d792f21a5bbe4 Mon Sep 17 00:00:00 2001 From: Admin <Admin@ADMIN> Date: 星期五, 16 一月 2026 16:44:34 +0800 Subject: [PATCH] 最新 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs" index 1b0c26a..cc4b728 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs" @@ -1,5 +1,3 @@ -using System.Reflection; -using System.Text; using Autofac; using Autofac.Core; using Autofac.Extensions.DependencyInjection; @@ -11,6 +9,8 @@ using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; +using System.Reflection; +using System.Text; using WIDESEA_Core; using WIDESEA_Core.Authorization; using WIDESEA_Core.BaseServices; @@ -20,6 +20,7 @@ using WIDESEA_Core.Helper; //using WIDESEA_Core.HostedService; using WIDESEA_Core.Middlewares; +using WIDESEA_TaskInfoService; using WIDESEA_WMSServer.Filter; var builder = WebApplication.CreateBuilder(args); @@ -94,6 +95,7 @@ builder.Services.Replace(ServiceDescriptor.Transient<IControllerActivator, ServiceBasedControllerActivator>()); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); +builder.Services.AddHostedService<WMSCruJob>(); var app = builder.Build(); -- Gitblit v1.9.3