mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 08:10:47 +08:00
IOC容器添加构造函数注入(DLL类中使用AutoRegisterAttribute特性标注的类,会在流程启动时自动注册),提高可读性。
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Serein.Library.Framework.NodeFlow
|
||||
{
|
||||
if(NodeRunCts == null)
|
||||
{
|
||||
NodeRunCts = Env.IOC.GetOrRegisterInstantiate<NodeRunCts>();
|
||||
NodeRunCts = Env.IOC.Get<NodeRunCts>();
|
||||
}
|
||||
// 使用局部变量,避免捕获外部的 `action`
|
||||
Action localAction = action;
|
||||
|
||||
Reference in New Issue
Block a user