コード例 #1
0
ファイル: ChatHub.cs プロジェクト: saidmahmoud/SUMU_Messenger
 public void RecallNotification(IList <string> recalledIds)
 {
     Models.User user;
     if (AuthorizedUser(out user))
     {
         string _recalledIds = string.Join(",", recalledIds);
         var    updates      = DataClassesManager.NotificationRecalled(user.UserId, _recalledIds);
         foreach (var update in updates)
         {
             var recipientConnectionId = _connections.GetConnectionId(update.Recipient_Id);
             if (!string.IsNullOrEmpty(recipientConnectionId))
             {
                 Clients.Client(recipientConnectionId).MessageRecalled(update.Id, update.Content);
             }
         }
     }
 }