PortalCMS
PortalCMS copied to clipboard
Call Services from scheduled task
I need a scheduled action, so I have installed Hangfire on Portal.CMS.Web But I don't know how resolve the service ....
This is my job source :
namespace Portal.CMS.Web.Jobs
{
public class Job
{
public async Task DoWork()
{
IMenuService _menuService = DependencyResolver.Current.GetService<IMenuService>(); // ERROR
}
}
}
Hi mtugnoli, were you able to make any progress with this?
no, I'm working on other topics, how can I solve this problem?