Having trouble scheduling/enqueuing an MVC action with Hangfire (1.6.5) (Custom IServices works just fine..)
No service for type 'Controllers.MyController' has been registered.
public class MyController : Controller
{
    public IActionResult RenderViewToString() 
    {
        return View();
    }
    public IActionResult Test() 
    {
        //Attempt 1
        Hangfire.BackgroundJob.Enqueue<MyController>(c => c.RenderViewToString());
        //Attempt 2
        Hangfire.BackgroundJob.Enqueue(() => c.RenderViewToString());
        return new EmptyResult();
    }
}
 
    