Beispiel #1
0
 private async Task SendEventToGroup <T>(Guid groupId, ChatEvent chatEvent, T data) where T : ChatBaseEventData
 {
     data.EventCode = chatEvent;
     data.ChannelId = groupId;
     await _hubContext.Clients.Group(groupId.ToString()).SendAsync(chatEvent.ToString("G"), PrepareEventData(data));
 }