UpdateStep.cs 508 B

1234567891011121314151617181920212223
  1. using SHJX.Service.Control.Extends;
  2. namespace SHJX.Service.Control.Pipeline.Nodes
  3. {
  4. public class UpdateStep : INode
  5. {
  6. #region Fields
  7. private static TaskExtend _taskExtend;
  8. #endregion
  9. public UpdateStep(TaskExtend taskExtend)
  10. {
  11. Name = nameof(UpdateStep);
  12. _taskExtend = taskExtend;
  13. }
  14. public override INode Invoke()
  15. {
  16. _taskExtend.UpdateStep(CurrentTask);
  17. return this;
  18. }
  19. }
  20. }