相关疑难解决方法(0)

如何在Hangfire中的后台作业中获取当前尝试号码?

在我的Hangfire后台作业的最终尝试结束之前,我需要执行一些数据库操作(我需要删除与作业相关的数据库记录)

我当前的作业使用以下属性设置:
[AutomaticRetry(Attempts = 5, OnAttemptsExceeded = AttemptsExceededAction.Delete)]

考虑到这一点,我需要确定当前的尝试次数是什么,但我很难通过Google搜索或Hangfire.io文档找到这方面的任何文档.

asp.net-mvc scheduled-tasks hangfire

6
推荐指数
3
解决办法
3498
查看次数

标签 统计

asp.net-mvc ×1

hangfire ×1

scheduled-tasks ×1