Exemple #1
0
 public async Task NotifyNewMessageAsync(uint groupId)
 {
     ChatHub hub = hubs.GetOrAdd(groupId, new ChatHub(groupId, logger));
     await hub.Notify(NotificationType.NewMessage, new CancellationToken());
 }
Exemple #2
0
 public async Task NotifyConnectedAsync(uint groupId, Guid user)
 {
     ChatHub hub = hubs.GetOrAdd(groupId, new ChatHub(groupId, logger));
     await hub.Notify(NotificationType.UserConnected, new CancellationToken());
 }