mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-19 16:06:33 +08:00
重写了节点主动中断功能,修改了运行环境持久化注册已有实例的逻辑。
This commit is contained in:
@@ -544,27 +544,7 @@ namespace Serein.NodeFlow.Env
|
||||
}
|
||||
|
||||
#region 流程依赖类库的接口
|
||||
/// <summary>
|
||||
/// 添加或更新全局数据
|
||||
/// </summary>
|
||||
/// <param name="keyName">数据名称</param>
|
||||
/// <param name="data">数据集</param>
|
||||
/// <returns></returns>
|
||||
public object AddOrUpdateGlobalData(string keyName, object data)
|
||||
{
|
||||
return currentFlowEnvironment.AddOrUpdateGlobalData(keyName, data);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取全局数据
|
||||
/// </summary>
|
||||
/// <param name="keyName">数据名称</param>
|
||||
/// <returns></returns>
|
||||
public object GetGlobalData(string keyName)
|
||||
{
|
||||
return currentFlowEnvironment.GetGlobalData(keyName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 运行时加载
|
||||
@@ -594,9 +574,14 @@ namespace Serein.NodeFlow.Env
|
||||
return IOC.Build();
|
||||
}
|
||||
|
||||
public bool CustomRegisterInstance(string key, object instance, bool needInjectProperty = true)
|
||||
public bool RegisterPersistennceInstance(string key, object instance)
|
||||
{
|
||||
return IOC.CustomRegisterInstance(key, instance, needInjectProperty);
|
||||
return IOC.RegisterPersistennceInstance(key, instance);
|
||||
}
|
||||
|
||||
public bool RegisterInstance(string key, object instance)
|
||||
{
|
||||
return IOC.RegisterInstance(key, instance);
|
||||
}
|
||||
|
||||
public object Get(Type type)
|
||||
|
||||
Reference in New Issue
Block a user