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
        }
    }
}
