Closed Brawns closed 2 months ago
How to solve the problem that the scheduled task executed by Hangfire cannot obtain the http context of the original request, and some interfaces assigned according to the http context cannot obtain the value in the method executed by Hangfire
Thats not something you can do. Ever.
Solution is to pass all required and necessary information needed to execute the job as parameters when you schedule it.
How to solve the problem that the scheduled task executed by Hangfire cannot obtain the http context of the original request, and some interfaces assigned according to the http context cannot obtain the value in the method executed by Hangfire