【发布时间】:2021-05-28 06:29:50
【问题描述】:
我有 ASP.NET Core 应用程序,我正在使用 Quartz.NET 进行重复作业,该作业每 60 秒运行一次我的 TestMethod(),它运行良好。
我需要手动运行此作业。如何强制 Quartz.NET 在手动运行 60 秒后进行下一次递归调用?
这是我需要完成的:
00:01:00 -> Automatic run of TestMethod();
00:02:00 -> Automatic run of TestMethod();
00:02:10 -> Manual run of TestMethod();
00:03:10 -> Automatic run of TestMethod(); (Note: 60 seconds after last run)
...
也许 Hangfire 库可以做到这一点?
【问题讨论】:
标签: asp.net asp.net-core quartz-scheduler quartz.net hangfire