using Kean.Domain.Task.Commands;
namespace Kean.Domain.Task.SharedServices
{
///
/// 上架
///
public sealed class Infeed
{
private readonly ICommandBus _commandBus;
///
/// 依赖注入
///
public Infeed(ICommandBus commandBus) =>
_commandBus = commandBus;
///
/// 处理程序
///
/// 库房
/// 条码
/// 负载规格
/// 操作位置
/// 目标位置
/// 优先级
/// 操作者
/// 标签
/// 前序连接
public 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) =>
_commandBus.Execute(new InfeedCommand
{
Warehouse = warehouse,
Barcode = barcode,
Spec = spec,
Original = original,
Destination = destination,
Priority = priority,
Operator = @operator,
Tag = tag,
Previous = previous,
Parameters = parameters
});
}
}