IRunnerStrategy.cs 892 B

1234567891011121314151617181920212223242526272829303132
  1. using Abp.Dependency;
  2. using WeEngine.Enum;
  3. using WeEngine.Packages;
  4. namespace WeEngine.Strategy.Runner
  5. {
  6. public interface IRunnerStrategy:IStrategy,ITransientDependency
  7. {
  8. /// <summary>
  9. /// 运行态方案包
  10. /// </summary>
  11. PackageNode PackageInfo { get; set; }
  12. /// <summary>
  13. /// 运行方案包
  14. /// </summary>
  15. /// <param name="node"></param>
  16. /// <param name="operationType"></param>
  17. /// <returns></returns>
  18. bool Run(NodeBase node, OperationType operationType);
  19. /// <summary>
  20. /// 运行方案包
  21. /// </summary>
  22. /// <param name="path"></param>
  23. /// <param name="operationType"></param>
  24. /// <returns></returns>
  25. bool Run(string path, OperationType operationType);
  26. void NodeChangeEventHandle(NodeBase node,NodeState state);
  27. }
  28. }