using Kean.Domain.Task.Commands;
namespace Kean.Domain.Task.SharedServices
{
///
/// 上架
///
public sealed class BypassEmpty
{
private readonly ICommandBus _commandBus;
///
/// 依赖注入
///
public BypassEmpty(ICommandBus commandBus) =>
_commandBus = commandBus;
///
/// 处理程序
///
/// 库房
/// 条码
/// 负载规格
/// 操作位置
/// 目标位置
/// 优先级
/// 操作者
/// 标签
/// 前序连接
public System.Threading.Tasks.Task Handler(
string barcode,
object original) =>
_commandBus.Execute(new BypassEmptyCommand
{
Barcode = barcode,
Original = original
});
}
}