コード例 #1
0
 public async Task NotifyNewMessageAsync(uint groupId)
 {
     ChatHub hub = hubs.GetOrAdd(groupId, new ChatHub(groupId, logger));
     await hub.Notify(NotificationType.NewMessage, new CancellationToken());
 }
コード例 #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());
 }