BotSharp/src/Infrastructure/BotSharp.Abstraction/Infrastructures/HookEmitOption.cs
2025-04-29 14:08:08 +08:00

12 lines
323 B
C#

namespace BotSharp.Abstraction.Infrastructures;
public class HookEmitOption<T>
{
public bool OnlyOnce { get; set; }
/// <summary>
/// Optional predicate to determine if the hook action should be executed for a specific hook instance.
/// </summary>
public Func<T, bool>? ShouldExecute { get; set; }
}