I've created a customer scheduled task and have set it up correctly from what i understand. However the Execute call is now firing.
Version: 3.50
Here is my code.
using System;
using System.Net;
using System.Xml;
using System.Data;
using System.Linq;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using Nop.Services.Logging;
using Nop.Services.Tasks;
using Nop.Services.Stores;
using Nop.Services.Customers;
using Nop.Services.Forums;
using Nop.Services.Common;
using Nop.Services.Directory;
using Nop.Core;
using Nop.Core.Domain.Stores;
using Nop.Core.Domain.Messages;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Forums;
using Nop.Core.Domain.Common;
using Nop.Core.Domain.Directory;
using Nop.Services.Messages;
namespace Nop.Services.Customers
{
public partial class UpdateFromAccountingSystemTask : ITask
{
private readonly ILogger _logger;
public UpdateFromAccountingSystemTask(ILogger logger)
{
this._logger = logger;
}
public virtual void Execute()
{
_logger.Information("here");
}
}
}
Database Record:
Type = Nop.Services.Customers.MessagesUpdateFromAccountingSystemTask, Nop.Services
Very simple code just to see it work and it's not :(
I've restarted the app and have restarted IIS and still nothing doing.
Any advice would be appreciated.
Thank you.