mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:53:25 +08:00
【优化】移除hangfire定时任务默认账号密码,并将路由设置到配置文件。
This commit is contained in:
@@ -244,7 +244,7 @@ var hangfireOptions = new Hangfire.DashboardOptions
|
||||
IsReadOnlyFunc = _ => false
|
||||
};
|
||||
|
||||
app.UseHangfireDashboard("/job", hangfireOptions); //可以改变Dashboard的url
|
||||
app.UseHangfireDashboard(AppSettingsConstVars.HangFireRoutePrefix, hangfireOptions);
|
||||
HangfireDispose.HangfireService();
|
||||
|
||||
//设置hangfire定时任务过期时间
|
||||
|
||||
Reference in New Issue
Block a user