using Kean.Domain.Wcs.Events; using Kean.Domain.Wcs.SharedServices.Proxies; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Kean.Domain.Wcs.EventHandlers { /// /// 接受输入成功时,处理类型 6:出库扫描异常 /// public sealed class AcceptInputSuccessEventHandler_6 : EventHandler { private readonly TaskProxy _taskProxy; // 任务代理 private readonly INotification _notification; // private readonly Kean.Infrastructure.Soap.LED.LedService _ledService; /// /// 依赖注入 /// public AcceptInputSuccessEventHandler_6( TaskProxy taskProxy, Kean.Infrastructure.Soap.LED.LedService ledService, INotification notification) { _taskProxy = taskProxy; _notification = notification; _ledService = ledService; } /// /// 处理程序 /// public override async Task Handle(AcceptInputSuccessEvent @event, CancellationToken cancellationToken) { if (@event.Function == "6") { //await _taskProxy.ScanError( // @event.Barcode, // @event.Parameters // ); ////LED提示 //string line1 = $"{@event.Barcode}出库确认错误"; //string line2 = $"请人工确认"; //await _ledService.Invoke(@event.Device, line1, line2); } } } }