C
C#2y ago
Vito

❔ How to generate HTML string from PartialView/View without HttpContext in IHostedService?

I am using scheduled jobs to send email to clients and I am generating email from PartialView, this is working great while I am using it inside request but once it is outside request it cant access HttpContext and it is throwing null error
1 Reply
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server