AbpZero框架已经集成了hangfire,但它默认是关闭的,我们可以在运行站点下的Startup.cs文件中把这行代码注释取消就行了,代码如下:

            //Hangfire (Enable to use Hangfire instead of default job manager)
            services.AddHangfire(config =>
            {
                config.UseSqlServerStorage(_appConfiguration.GetConnectionString("Default"));

            });

运行swagger后,把链接改为:http://localhost:22742/hangfire,即可调出hangfire后台作业管理页面。

在AbpZero中hangfire后台作业的使用——开启hangfire

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2021-05-19
  • 2021-05-25
  • 2022-12-23
  • 2021-12-06
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-11-15
  • 2022-12-23
  • 2022-01-05
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案