using Kean.Application.Command.Interfaces;
using Kean.Infrastructure.Hangfire;
using System.Threading.Tasks;
namespace Kean.Presentation.Rest.Jobs
{
///
/// WCS 监控站台有货状态处理作业
///
public class WcsStationJob : IRecurringJob
{
private readonly IWcsService _wcsService; // 控制交互命令服务
///
/// 依赖注入
///
public WcsStationJob(
IWcsService wcsService)
{
_wcsService = wcsService;
}
/*
* 实现 Kean.Infrastructure.Hangfire.IRecurringJob.Execute 方法
*/
[DisallowConcurrentExecution]
public async Task Execute()
{
await _wcsService.AccessStation();
}
}
}