I see Hangfire.Autofac package and I configure it.
It work perfectly, but, if i want to get a service by dependency resolver inside a job i have a problem.
For example :
_aereiRepository = DependencyResolver.Current.GetService();
With DependencyResolver i need HttpContext but inside a job i don’t have it.
If specify the dependency inside costructor’s class work perfectly
public Engine(IMyAirlineDbContext db, IEngineOpec eo, IAereiRepository aereiRepository)
How can i solve this problem?