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);
|
|
|
|
|
|
2024-11-23 04:38:09 +00:00
|
|
|
Task PublishAsync(string channel, string message, EventPriority priority = EventPriority.Medium);
|
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
|
|
|
}
|