mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
调整了Library文件结构;
源代码生成新增了参数验证方法; 修改了ParamterDetails的定义
This commit is contained in:
28
Library/Attributes/DynamicFlowAttribute.cs
Normal file
28
Library/Attributes/DynamicFlowAttribute.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Serein.Library
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// <para>表示该类中存在节点信息</para>
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public sealed class DynamicFlowAttribute : Attribute
|
||||
{
|
||||
public DynamicFlowAttribute(string name = "",bool scan = true)
|
||||
{
|
||||
Name = name;
|
||||
Scan = scan;
|
||||
}
|
||||
/// <summary>
|
||||
/// 补充名称,不影响运行流程
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 如果设置为false,将忽略该类
|
||||
/// </summary>
|
||||
public bool Scan { get; set; } = true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user