【问题标题】:After ABP BoilerPlate upgrade to 6.3, IAsyncBackgroundJob can not be invokedABP BoilerPlate 升级到 6.3 后,无法调用 IAsyncBackgroundJob
【发布时间】:2021-04-28 03:07:18
【问题描述】:

我们的平台目前在 abp Boilerplate v6.2.0 上,升级到 v6.3.0 后,我们的作业没有被触发,因为引发了以下错误。我降级到 v6.2.0,除了版本更改之外没有任何代码更改,然后我们的工作就可以正常工作了。

我计划在这个周末挖掘 V6.3.0 的源代码,但如果有人已经发现了类似的问题,请告诉我。

错误:

{"The type `Abp.BackgroundJobs.IAsyncBackgroundJob`1[AI.BackgroundJobCoordinators.BackgroundJobs.ArgsDto.FeatureDeterminatorBackgroundJobArgsDto]` must be derived from the `AI.BackgroundJobCoordinators.BackgroundJobs.FeatureDeterminatorBackgroundJob` type. (Parameter 'type')"}

【问题讨论】:

  • 嘿@aaron,好的,我看到了这个问题。我会跟踪 PR,如果它落后了,我很可能会在本地修复它以使事情正常运行,然后查看它何时发布。感谢您的提醒,本周末为我节省了几个小时!

标签: aspnetboilerplate


【解决方案1】:

V6.3.0 错误地使用 TJob 而不是 TArgs 来检查作业类型。 这已在版本 V6.3.1 中得到纠正。 见https://github.com/aspnetboilerplate/aspnetboilerplate/pull/6087

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-14
    • 1970-01-01
    • 2019-03-11
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    相关资源
    最近更新 更多