Is Hangfire forgetting dependecies?


#1

I register my dependencies using service.Add* in asp.net core. A service that hold a method that get executed in the background have some of it’s dependencies injected as singleton service.AddSigleton but I see Hangfire requesting new instance of the dependency which causes the recurrent job to hang my application and suddenly fail the job.