BotSharp/src/Infrastructure/BotSharp.Abstraction/Hooks/IHookBase.cs
2025-05-15 23:21:01 -05:00

11 lines
246 B
C#

namespace BotSharp.Abstraction.Hooks;
public interface IHookBase
{
/// <summary>
/// Agent Id
/// </summary>
string SelfId => string.Empty;
bool IsMatch(string agentId) => string.IsNullOrEmpty(SelfId) || SelfId == agentId;
}