山东雷驰
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.
 
 
 
 

35 lines
1004 B

using Kean.Domain.Task.Events;
using Kean.Domain.Task.SharedServices.Proxies;
using System.Threading;
namespace Kean.Domain.Task.EventHandlers
{
/// <summary>
/// 任务完成命令成功时,移动库存
/// </summary>
[EventHandlerIndex(0)]
public sealed class CancelSuccessEventHandler_Stock : EventHandler<CancelSuccessEvent>
{
private readonly StockProxy _stockProxy; // 仓储域
/// <summary>
/// 依赖注入
/// </summary>
public CancelSuccessEventHandler_Stock(
StockProxy stockProxy)
{
_stockProxy = stockProxy;
}
/// <summary>
/// 处理程序
/// </summary>
public override async System.Threading.Tasks.Task Handle(CancelSuccessEvent @event, CancellationToken cancellationToken)
{
await _stockProxy.OutboundForPallet(
@event.Barcode,
@event.Operator,
"Cancel");
}
}
}