Files
serein-flow/Library/Api/IFlipflopContext.cs

27 lines
769 B
C#
Raw Normal View History

using Serein.Library.Enums;
using Serein.Library.NodeFlow.Tool;
namespace Serein.Library.Api
{
2024-10-11 16:46:16 +08:00
/// <summary>
/// 触发器必须使用该接口作为返回值同时必须用Task泛型表示否则将不会进行等待触发。
/// </summary>
public interface IFlipflopContext<out TResult>
{
2024-10-11 16:46:16 +08:00
/// <summary>
/// 触发器完成的状态(根据业务场景手动设置)
/// </summary>
2024-09-15 22:07:10 +08:00
FlipflopStateType State { get; set; }
2024-10-11 16:46:16 +08:00
/// <summary>
/// 触发传递的数据
/// </summary>
//TriggerData TriggerData { get; set; }
TriggerType Type { get; set; }
/// <summary>
/// 触发传递的数据
/// </summary>
TResult Value { get; }
}
}