如何顺序执行hangfire作业?

时间:2019-07-30 07:17:33

标签: asp.net-core hangfire

我有3个经常性工作

  RecurringJob.AddOrUpdate<IAccountBilling>(a => a.CheckUserPayment(), Cron.Minutely);
  RecurringJob.AddOrUpdate<IAccountBilling>("CalculateUserCharge",a=>a.CalculateUserCharge(DateTime.Today.AddDays(-1)),Cron.Daily(21,00),TimeZoneInfo.Utc);
  RecurringJob.AddOrUpdate<IAccountBilling>(a=>a.AccountStatusInspector(),Cron.Daily(21,00), TimeZoneInfo.Utc);

我希望AccountStatusInspector工作在CalculateUserCharge方法之后运行。 我可以在AccountStatusInspector方法中调用CalculateUserCharge()方法,但是我想知道是否可以顺序运行这些作业?

0 个答案:

没有答案