I’m very impressed with the HangFire! Its simplicity, power and beautiful dashboard are awesome! Congratulations! =D
But I’m having a problem trying use Rotativa to generate PDF attachment to a email. The “BuildPdf” method (https://github.com/webgio/Rotativa/issues/19) ask for a ControllerContext, which is not available in the jobs context.
My ask is if HangFire has any extensibility point to create jobs that can access to ControllerContext like a normal MVC controller. Or yet, any tip for generate PDFs from razor in the background jobs.
My enqueue pseudo-code:
BackgroundJob.Enqueue<‘MailController’>(controller => controller.MyPdfsAction(mail.Id));
Anyway, many thanks for share this really awesome project!
Cheers from Brasil! o/