Files
serein-flow/NodeFlow/Model/SingleFlipflopNode.cs

34 lines
990 B
C#
Raw Normal View History

using Serein.Library.Api;
using Serein.Library.Entity;
using Serein.NodeFlow.Base;
2024-08-06 16:09:46 +08:00
namespace Serein.NodeFlow.Model
{
public class SingleFlipflopNode : NodeModelBase
2024-08-06 16:09:46 +08:00
{
public override object Execute(IDynamicContext context)
2024-08-06 16:09:46 +08:00
{
throw new NotImplementedException("无法以非await/async的形式调用触发器");
}
public override Parameterdata[] GetParameterdatas()
{
if (base.MethodDetails.ExplicitDatas.Length > 0)
{
return MethodDetails.ExplicitDatas
.Select(it => new Parameterdata
{
state = it.IsExplicitData,
value = it.DataValue
})
.ToArray();
}
else
{
return [];
}
}
2024-08-06 16:09:46 +08:00
}
}