using Kean.Domain.Task.Commands; namespace Kean.Domain.Task.SharedServices { /// /// 上架 /// public sealed class InfeedCheck { private readonly ICommandBus _commandBus; /// /// 依赖注入 /// public InfeedCheck(ICommandBus commandBus) => _commandBus = commandBus; /// /// 处理程序 /// /// 库房 /// 条码 /// 负载规格 /// 操作位置 /// 目标位置 /// 优先级 /// 操作者 /// 标签 /// 前序连接 public async System.Threading.Tasks.Task Handler( int warehouse, string barcode, int? spec, object original, object destination, int? priority, int @operator, string tag, int? previous, string parameters) { await _commandBus.Execute(new InfeedCheckCommand { Warehouse = warehouse, Barcode = barcode, Spec = spec, Original = original, Destination = destination, Priority = priority, Operator = @operator, Tag = tag, Previous = previous, Parameters = parameters }); } } }