2024-11-12 22:51:33 +00:00
|
|
|
namespace BotSharp.Abstraction.Infrastructures;
|
|
|
|
|
|
2025-04-29 06:08:08 +00:00
|
|
|
public class HookEmitOption<T>
|
2024-11-12 22:51:33 +00:00
|
|
|
{
|
|
|
|
|
public bool OnlyOnce { get; set; }
|
2025-04-29 06:08:08 +00:00
|
|
|
|
|
|
|
|
/// <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; }
|
2024-11-12 22:51:33 +00:00
|
|
|
}
|