using Kean.Domain.Stock.Commands; using System.Threading.Tasks; namespace Kean.Domain.Stock.SharedServices { /// /// 出库 /// public sealed class SendAGV { private readonly ICommandBus _commandBus; /// /// 依赖注入 /// public SendAGV(ICommandBus commandBus) => _commandBus = commandBus; /// /// 处理程序 /// /// 托盘条码 /// 操作者 /// 标签 public Task Handler( string barcode, string tag, int destination) => _commandBus.Execute(new SendAGVCommand { Barcode = barcode, Tag = tag, Destination = destination }); } }