BotSharp/src/Infrastructure/BotSharp.Abstraction/Infrastructures/Events/IEventSubscriber.cs
2024-12-01 23:06:21 +00:00

13 lines
381 B
C#

using System.Threading;
namespace BotSharp.Abstraction.Infrastructures.Events;
public interface IEventSubscriber
{
Task SubscribeAsync(string channel, Func<string, string, Task> received);
Task SubscribeAsync(string channel, string group, int? port, bool priorityEnabled,
Func<string, string, Task> received,
CancellationToken? stoppingToken = null);
}