添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using MW.WorkFlow;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.Process
|
||||
{
|
||||
public class ChipStraighteningActivity: ActivityAbstractBase
|
||||
{
|
||||
public ChipStraighteningActivity(string name) : base(name)
|
||||
{
|
||||
}
|
||||
|
||||
protected override async Task<ActivityResult> OnExecuteAsync(WorkflowContext context, ActivityControl activityControl)
|
||||
{
|
||||
await Task.Delay(2000, activityControl.CancellationToken);
|
||||
|
||||
return ActivityResult.Success;
|
||||
}
|
||||
protected override void PrepareExecute(WorkflowContext context, ActivityControl activityControl)
|
||||
{
|
||||
// Custom preparation logic before execution
|
||||
}
|
||||
protected override void AfterExecute(WorkflowContext context, ActivityControl activityControl)
|
||||
{
|
||||
// Custom cleanup logic after execution
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user