zoukankan      html  css  js  c++  java
  • mvc中hangfire全局简单配置

    public void Configuration(IAppBuilder app)
          {
              ConfigureAuth(app);
     
              //指定使用Sqlserver进行定时任务的持久化
              GlobalConfiguration.Configuration.UseSqlServerStorage("conn");
     
              //启用服务
              app.UseHangfireServer();
     
              //启用Dashboard面板
              app.UseHangfireDashboard();
          }
    //在MVC Startup类中添加
  • 相关阅读:
    Redis
    Redis
    运维
    Redis
    Redis
    Redis
    Redis
    Redis
    Redis
    Spring
  • 原文地址:https://www.cnblogs.com/fanying/p/10918861.html
Copyright © 2011-2022 走看看