From bcde5ea70330cb16597c2320b94b5f1d7cb15752 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com> Date: 星期六, 15 二月 2025 15:32:16 +0800 Subject: [PATCH] 优化页面 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs index d9f23b6..c7403ba 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Program.cs @@ -19,6 +19,7 @@ using WIDESEA_Core.Core; using Swashbuckle.AspNetCore.SwaggerGen; using Microsoft.OpenApi.Models; +using WIDESEA_StorageTaskServices; var builder = WebApplication.CreateBuilder(args); @@ -109,6 +110,8 @@ } }); +builder.Services.AddHostedService<MyBackgroundService>(); + var app = builder.Build(); @@ -144,7 +147,6 @@ app.UseAuthentication(); app.UseAuthorization(); - app.MapControllers(); -- Gitblit v1.9.3