using Kean.Domain.Task.Commands;
namespace Kean.Domain.Task.SharedServices
{
///
/// 任务中转
///
public sealed class TransferRelocate
{
private readonly ICommandBus _commandBus;
///
/// 依赖注入
///
public TransferRelocate(ICommandBus commandBus) =>
_commandBus = commandBus;
///
/// 处理程序
///
/// 标识
public System.Threading.Tasks.Task Handler(int id) =>
_commandBus.Execute(new TransferRelocateCommand { Id = id });
}
}