huangxiaoqiang
2026-04-06 1ceaab54e82568a57599b61036aeccd110184e48
ÏîÄ¿´úÂë/WMS/WMSServer/WIDESEA_WMSServer/Program.cs
@@ -59,6 +59,7 @@
builder.Services.AddSingleton<IJobFactory, JobFactory>();
builder.Services.AddTransient<BackgroundJob>();//Job使用瞬时依赖注入
builder.Services.AddTransient<WhiteCarAutoOutJob>();//Job使用瞬时依赖注入
builder.Services.AddSingleton<ISchedulerCenter, SchedulerCenterServer>();
builder.Services.AddHttpContextSetup();
@@ -116,11 +117,11 @@
});
//全自动出库
builder.Services.AddHostedService<MyBackgroundService>();
//builder.Services.AddHostedService<MyBackgroundService>();
var app = builder.Build();
app.UseQuartzJobMildd();
//app.UseQuartzJobMildd();
// 3、配置中间件
app.UseMiniProfiler();//性能分析器
app.ConfigureApplication();//配置文件