mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 00:06:45 +08:00
忘记改啥了*1
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -2,6 +2,7 @@
|
||||
using Serein.Library.Api;
|
||||
using Serein.Library.FlowNode;
|
||||
using Serein.Library.Utils;
|
||||
using Serein.NodeFlow.Tool;
|
||||
|
||||
namespace Serein.NodeFlow.Env
|
||||
{
|
||||
@@ -426,6 +427,30 @@ namespace Serein.NodeFlow.Env
|
||||
|
||||
|
||||
|
||||
#region 流程依赖类库的接口
|
||||
|
||||
/// <summary>
|
||||
/// 运行时加载
|
||||
/// </summary>
|
||||
/// <param name="file">文件名</param>
|
||||
/// <returns></returns>
|
||||
public bool LoadNativeLibraryOfRuning(string file)
|
||||
{
|
||||
return currentFlowEnvironment.LoadNativeLibraryOfRuning(file);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 运行时加载指定目录下的类库
|
||||
/// </summary>
|
||||
/// <param name="path">目录</param>
|
||||
/// <param name="isRecurrence">是否递归加载</param>
|
||||
public void LoadAllNativeLibraryOfRuning(string path, bool isRecurrence = true)
|
||||
{
|
||||
currentFlowEnvironment.LoadAllNativeLibraryOfRuning(path,isRecurrence);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IOC容器
|
||||
public ISereinIOC Build()
|
||||
{
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Serein.NodeFlow.Env
|
||||
var md = methodDetails.CloneOfNode(nodeModel.Env, nodeModel);
|
||||
nodeModel.DisplayName = md.MethodAnotherName;
|
||||
nodeModel.MethodDetails = md;
|
||||
nodeModel.OnLoading();
|
||||
nodeModel.OnCreating();
|
||||
return nodeModel;
|
||||
}
|
||||
|
||||
|
||||
@@ -835,5 +835,31 @@ namespace Serein.NodeFlow.Env
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
#region 流程依赖类库的接口
|
||||
|
||||
/// <summary>
|
||||
/// 运行时加载
|
||||
/// </summary>
|
||||
/// <param name="file">文件名</param>
|
||||
/// <returns></returns>
|
||||
public bool LoadNativeLibraryOfRuning(string file)
|
||||
{
|
||||
Console.WriteLine("远程环境尚未实现的接口:LoadNativeLibraryOfRuning");
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 运行时加载指定目录下的类库
|
||||
/// </summary>
|
||||
/// <param name="path">目录</param>
|
||||
/// <param name="isRecurrence">是否递归加载</param>
|
||||
public void LoadAllNativeLibraryOfRuning(string path, bool isRecurrence = true)
|
||||
{
|
||||
Console.WriteLine("远程环境尚未实现的接口:LoadAllNativeLibraryOfRuning");
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user