Quartz.Net Dependency Injection .Net Core

前端 未结 4 856
无人及你
无人及你 2021-01-11 15:08

In my project I have to use Quartz but I don\'t know what i do wrong.

JobFactory:

public class IoCJobFactory :         


        
4条回答
  •  终归单人心
    2021-01-11 15:51

    I got the same issue.

    I update from

    services.AddScoped();

    to

    services.AddScoped();

    then it works.

    _factory.GetService(bundle.JobDetail.JobType) as IJob; will not be null :)

提交回复
热议问题