BotSharp/src/Infrastructure/BotSharp.Abstraction/Infrastructures/Events/IEventSubscriber.cs

13 lines
370 B
C#
Raw Normal View History

2024-11-29 23:12:44 +00:00
using System.Threading;
2024-11-08 18:10:15 +00:00
namespace BotSharp.Abstraction.Infrastructures.Events;
public interface IEventSubscriber
{
Task SubscribeAsync(string channel, Func<string, string, Task> received);
2024-11-29 23:12:44 +00:00
Task SubscribeAsync(string channel, string group, bool priorityEnabled,
Func<string, string, Task> received,
CancellationToken? stoppingToken = null);
2024-11-08 18:10:15 +00:00
}