Ive registered a job i the ScheduleTask Table setting the type as:
Nop.Plugin.Feed.Gs.Services.SynchronizationTask
In my plugin i have the SynchronizationTask.cs:
namespace Nop.Plugin.Feed.Gs.Services
{
public class SynchronizationTask : IScheduleTask
{
#region Fields
private readonly IStoreService _storeService;
private readonly GSService _gsService;
#endregion
#region Ctor
public SynchronizationTask(
IStoreService storeService,
GSService gsService
)
{
this._storeService = storeService;
this._gsService = gsService;
}
#endregion
#region Method
public void Execute()
{
foreach (var store in _storeService.GetAllStores())
_gsService.GenerateStaticFile(store);
}
#endregion
}
}
I was hoping this was enough, but clearly it isnt so. I get the Following Error message if i try and run the task:
No constructor was found that had all the dependencies satisfied
Can someone guide me in this issue?
Thanks!