public void Configuration(IAppBuilder app) { ConfigureAuth(app); //指定使用Sqlserver进行定时任务的持久化 GlobalConfiguration.Configuration.UseSqlServerStorage("conn"); //启用服务 app.UseHangfireServer(); //启用Dashboard面板 app.UseHangfireDashboard(); }
//在MVC Startup类中添加
转载于:https://www.cnblogs.com/fanying/p/10918861.html