IChannelStatusBroadcaster.cs 489 B

1234567891011
  1. namespace Application.Abstractions.Hub;
  2. /// <summary>
  3. /// 채널 라이브 상태 변경을 SignalR AppHub 클라이언트에게 브로드캐스트.
  4. /// ChannelSidebar / WatchView 가 ReceiveChannelStatus 이벤트를 구독.
  5. /// </summary>
  6. public interface IChannelStatusBroadcaster
  7. {
  8. /// <param name="channelSID">내부 Channel.SID (GUID 문자열)</param>
  9. Task BroadcastAsync(string channelSID, bool isLive, int viewerCount, string? videoId, CancellationToken ct = default);
  10. }