using Pomelo.AspNetCore.TimedJob;
|
using WIDESEA_ISquareCabinServices;
|
|
namespace WIDESEA_WMSServer
|
{
|
public class CustomerJob:Job
|
{
|
private readonly ICustomerServices _customerServices;
|
|
public CustomerJob(ICustomerServices customerServices)
|
{
|
_customerServices = customerServices;
|
}
|
|
[Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = false, SkipWhileExecuting = true)]
|
public void Run()
|
{
|
_customerServices.GetCustomerList();
|
}
|
}
|
}
|