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

19 lines
555 B
C#
Raw Normal View History

2024-11-08 18:10:15 +00:00
namespace BotSharp.Abstraction.Infrastructures.Events;
public interface IEventPublisher
{
/// <summary>
/// Boardcast message to all subscribers
/// </summary>
/// <param name="channel"></param>
/// <param name="message"></param>
/// <returns></returns>
Task BroadcastAsync(string channel, string message);
Task PublishAsync(string channel, string message);
2024-11-11 04:13:50 +00:00
Task ReDispatchAsync(string channel, int count = 10, string order = "asc");
2024-11-21 04:25:17 +00:00
Task ReDispatchPendingAsync(string channel, string group, int count = 10);
2024-11-08 18:10:15 +00:00
}