コード例 #1
0
 public void SendNotification(string userId, Notification notification)
 {
     this.hubContext.Clients.Group(userId).Notification(notification);
 }
コード例 #2
0
 public void SendNotification(long gameId, Guid teamId, Notification notification)
 {
     this.hubContext.Clients.Group(NotificationHub.GameTeamGroup(gameId, teamId)).Notification(notification);
 }