I am using Quartz.net version 3.7 and need to inject DbContext in the constructor. How would i do it ? Not able to find a good example using .net6.
public abstract class BaseJobMgr : IJob { private readonly PtmDBContext? _ctx;
public Task Execute(IJobExecutionContext context)
{
}
}
Use the nuget
Quartz.Extensions.HostingThen do something like thisSee here