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

15 lines
394 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);
}