添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using MW.WorkFlow;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.Process
|
||||
{
|
||||
public class DieTransferActivity : ActivityAbstractBase
|
||||
{
|
||||
private readonly DieTransferMotionService _motionService;
|
||||
|
||||
public DieTransferActivity(string name, DieTransferMotionService motionService) : base(name)
|
||||
{
|
||||
_motionService = motionService ?? throw new ArgumentNullException(nameof(motionService));
|
||||
}
|
||||
|
||||
protected override async Task<ActivityResult> OnExecuteAsync(WorkflowContext context, ActivityControl activityControl)
|
||||
{
|
||||
await _motionService.ExecuteAsync(context, activityControl).ConfigureAwait(false);
|
||||
|
||||
return ActivityResult.Success;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user