移除hangire配置

dev
嵇文龙 1 month ago
parent 7bc6495785
commit 45a2bccf18

@ -51,7 +51,7 @@ builder.Services.AddDjyModuleInstall();//Djy
builder.Services.AddRuleEngineModuleInstall();//Djy规则引擎校验服务
//builder.Services.AddHangfireModuleInstall();//Hangfire服务
builder.Services.AddHangfireOPInstall();//Hangfire·þÎñ
//builder.Services.AddHangfireOPInstall();//Hangfire·þÎñ
builder.Services.AddMQModuleInstall();//MQ
// builder.Services.AddEndpointsApiExplorer();
@ -88,7 +88,7 @@ if (!policyName.IsNullOrEmpty())
app.UseCors(policyName); //添加跨域中间件
}
app.UseHangfireMiddleware();
//app.UseHangfireMiddleware();
app.UseRouting();
@ -108,7 +108,7 @@ app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
//await ServiceLocator.Instance.GetService<ISysCommonCacheService>().LoadCommonCache();
app.UseHangfireServer();
JobMiddleware.RegisterJob<IWSLReportJobService>(j => j.GeneratReportAsync(), Cron.Daily(23, 59));
//app.UseHangfireServer();
//JobMiddleware.RegisterJob<IWSLReportJobService>(j => j.GeneratReportAsync(), Cron.Daily(23, 59));
app.Run();
Loading…
Cancel
Save