mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
29 lines
712 B
C#
29 lines
712 B
C#
|
|
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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|