You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
794 B
33 lines
794 B
3 months ago
|
using Kean.Application.Command.Interfaces;
|
||
|
using Kean.Infrastructure.Hangfire;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Kean.Presentation.Rest.Jobs
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// WCS 输出处理作业
|
||
|
/// </summary>
|
||
|
public class WcsOutputJob : IRecurringJob
|
||
|
{
|
||
|
private readonly IWcsService _wcsService; // 控制交互命令服务
|
||
|
|
||
|
/// <summary>
|
||
|
/// 依赖注入
|
||
|
/// </summary>
|
||
|
public WcsOutputJob(
|
||
|
IWcsService wcsService)
|
||
|
{
|
||
|
_wcsService = wcsService;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* 实现 Kean.Infrastructure.Hangfire.IRecurringJob.Execute 方法
|
||
|
*/
|
||
|
[DisallowConcurrentExecution]
|
||
|
public async Task Execute()
|
||
|
{
|
||
|
await _wcsService.AccessOutputs();
|
||
|
}
|
||
|
}
|
||
|
}
|