Files
serein-flow/Library/NodeStaticConfig.cs

43 lines
1.3 KiB
C#
Raw Permalink Normal View History

using Serein.Library.Api;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Library
{
/// <summary>
/// 节点静态配置类
/// </summary>
public static class NodeStaticConfig
{
/// <summary>
/// 节点的命名空间
/// </summary>
//public const string NodeSpaceName = $"{nameof(Serein)}.{nameof(Serein.NodeFlow)}.{nameof(Serein.NodeFlow.Model)}";
public const string NodeSpaceName = "Serein.NodeFlow.Model";
/// <summary>
/// 节点连接关系种类
/// </summary>
public static readonly ConnectionInvokeType[] ConnectionTypes = new ConnectionInvokeType[]
{
ConnectionInvokeType.Upstream,
ConnectionInvokeType.IsSucceed,
ConnectionInvokeType.IsFail,
ConnectionInvokeType.IsError,
};
/// <summary>
/// 节点连接关系种类
/// </summary>
public static readonly ConnectionArgSourceType[] ConnectionArgSourceTypes = new ConnectionArgSourceType[]
{
ConnectionArgSourceType.GetPreviousNodeData,
ConnectionArgSourceType.GetOtherNodeData,
ConnectionArgSourceType.GetOtherNodeDataOfInvoke,
};
}
}