using Serein.Library; using Serein.Library.Api; namespace Serein.NodeFlow { public class FlowTask { /// /// 是否异步启动流程 /// public bool IsTaskAsync { get; set; } /// /// 流程起始节点 /// public Func GetStartNode { get; set; } /// /// 获取当前画布流程的所有节点 /// public Func> GetNodes { get; set; } } /// /// 节点任务执行依赖 /// public class FlowWorkOptions() { /// /// 流程IOC容器 /// public ISereinIOC FlowIOC { get; set; } /// /// 流程运行环境 /// public IFlowEnvironment Environment { get; set; }// = environment; /// /// 表示运行环境状态 /// public CancellationTokenSource CancellationTokenSource { get; } = new CancellationTokenSource(); /// /// 上下文线程池 /// public Serein.Library.Utils.ObjectPool FlowContextPool { get; set; } /// /// 每个画布需要启用的节点 /// public Dictionary Flows { get; set; } /// /// 当前任务加载的所有节点 /// //public List Nodes { get; set; }// = nodes; /// /// 需要注册的类型 /// public Dictionary> AutoRegisterTypes { get; set; } //= autoRegisterTypes; /// /// 初始化时需要的方法 /// public List InitMds { get; set; }// = initMds; /// /// 加载时需要的方法 /// public List LoadMds { get; set; }// = loadMds; /// /// 退出时需要调用的方法 /// public List ExitMds { get; set; } //= exitMds; } }