mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-13 04:59:27 +08:00
@@ -80,15 +80,6 @@ builder.Services.AddSqlsugarServer(DbFiterExtend.Data);
|
||||
//Quartz任务调度配置
|
||||
#endregion
|
||||
builder.Services.AddQuartzService();
|
||||
builder.Services.AddHangfire(option =>
|
||||
{
|
||||
option.SetDataCompatibilityLevel(CompatibilityLevel.Version_170);//全局配置兼容版本,向下兼容
|
||||
option.UseColouredConsoleLogProvider();//输出日志
|
||||
option.UseSimpleAssemblyNameTypeSerializer();//使用简单程序集名称类型序列化程序
|
||||
option.UseRecommendedSerializerSettings();//使用推荐的序列化配置
|
||||
option.UseMemoryStorage();
|
||||
});
|
||||
builder.Services.AddHangfireServer();
|
||||
#region
|
||||
//AutoMapper注入
|
||||
#endregion
|
||||
@@ -240,10 +231,6 @@ app.UseDbSeedInitService();
|
||||
#endregion
|
||||
app.UseRedisSeedInitService();
|
||||
|
||||
app.UseHangfireDashboard();
|
||||
|
||||
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
#region
|
||||
@@ -251,7 +238,6 @@ app.UseEndpoints(endpoints =>
|
||||
#endregion
|
||||
endpoints.MapHub<MainHub>("/api/hub/main");
|
||||
endpoints.MapControllers();
|
||||
endpoints.MapHangfireDashboard();
|
||||
});
|
||||
|
||||
//准备添加多租户
|
||||
|
||||
Reference in New Issue
Block a user