You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
using Kean.Domain.Stock.Commands;
|
|
using Kean.Domain.Stock.Events;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Kean.Domain.Stock.EventHandlers
|
|
{
|
|
/// <summary>
|
|
/// 出库成功时,下发信息给AGV
|
|
/// </summary>
|
|
[EventHandlerIndex(9)]
|
|
public sealed class AutoOutSuccessEventHandler_AGV : EventHandler<AutoOutSuccessEvent>
|
|
{
|
|
private readonly ICommandBus _commandBus; // 命令总线
|
|
|
|
/// <summary>
|
|
/// 依赖注入
|
|
/// </summary>
|
|
public AutoOutSuccessEventHandler_AGV(
|
|
ICommandBus commandBus)
|
|
{
|
|
_commandBus = commandBus;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 处理程序
|
|
/// </summary>
|
|
public override async Task Handle(AutoOutSuccessEvent @event, CancellationToken cancellationToken)
|
|
{
|
|
//SendAGVCommand command = new SendAGVCommand();
|
|
//command.Barcode = @event.Barcode;
|
|
//command.Tag = @event.Tag;
|
|
//command.Destination = @event.Destination;
|
|
//command.Lines = @event.Lines;
|
|
|
|
//await _commandBus.Execute(command, cancellationToken);
|
|
}
|
|
}
|
|
}
|