Files
serein-flow/Library/Api/IFlipflopContext.cs
2024-10-11 16:46:16 +08:00

27 lines
769 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Serein.Library.Enums;
using Serein.Library.NodeFlow.Tool;
namespace Serein.Library.Api
{
/// <summary>
/// 触发器必须使用该接口作为返回值同时必须用Task泛型表示否则将不会进行等待触发。
/// </summary>
public interface IFlipflopContext<out TResult>
{
/// <summary>
/// 触发器完成的状态(根据业务场景手动设置)
/// </summary>
FlipflopStateType State { get; set; }
/// <summary>
/// 触发传递的数据
/// </summary>
//TriggerData TriggerData { get; set; }
TriggerType Type { get; set; }
/// <summary>
/// 触发传递的数据
/// </summary>
TResult Value { get; }
}
}