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.
26 lines
664 B
26 lines
664 B
3 months ago
|
using Kean.Domain.Task.Commands;
|
||
|
|
||
|
namespace Kean.Domain.Task.SharedServices
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 任务中转
|
||
|
/// </summary>
|
||
|
public sealed class TransferRelocate
|
||
|
{
|
||
|
private readonly ICommandBus _commandBus;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 依赖注入
|
||
|
/// </summary>
|
||
|
public TransferRelocate(ICommandBus commandBus) =>
|
||
|
_commandBus = commandBus;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 处理程序
|
||
|
/// </summary>
|
||
|
/// <param name="id">标识</param>
|
||
|
public System.Threading.Tasks.Task Handler(int id) =>
|
||
|
_commandBus.Execute(new TransferRelocateCommand { Id = id });
|
||
|
}
|
||
|
}
|