添加了 Action FlowCall 节点的代码生成支持

This commit is contained in:
fengjiayi
2025-07-08 14:22:41 +08:00
parent 678b01f2fe
commit efe4d0a8e5
11 changed files with 1372 additions and 644 deletions

View File

@@ -28,7 +28,7 @@ namespace Serein.Library
/// 是否保护参数
/// </summary>
[PropertyInfo(IsNotification = true)]
private bool _isProtectionParameter;
private bool _isProtectionParameter = false;
/// <summary>
/// 对应的节点

View File

@@ -321,7 +321,14 @@ namespace Serein.Library.Utils
var typeFullName = typeMapping.Key; // 注册的类型 FullName
var type = typeMapping.Value; // 对应的Type。如果是以接口形式注册typeFullName将是接口类的FullName而type将是接口实现类。
var constructors = GetConstructor(type); // 获取构造函数
if(constructors .Length == 0)
{
if (!dependencyMap[IOC_MAIN].Contains(type.FullName))
{
//dependencyMap[IOC_MAIN].Add(type.FullName);
dependencyMap[IOC_MAIN].Add(typeFullName);
}
}
foreach (var constructor in constructors)
{
if (constructor is null)