Beispiel #1
0
        //public void Subscribe(int chatId)
        //    => _subscriptionManager.Subscribe(Context.User.Identity.Name, chatId, Context.ConnectionId);

        //public void UnSubscribe()
        //    => _subscriptionManager.UnSubscribe(Context.ConnectionId);

        public void MarkMessageAsRead(int messageId, int chatId)
        {
            _messageReadStatusRepo.MarkRead(Context.User.Identity.Name, messageId);
            Clients.Clients(_subscriptionManager.GetActiveChatMembers(chatId).ToList()).MessageRead(messageId, chatId, Context.User.Identity.Name);
        }
Beispiel #2
0
 public void MarkMessageAsReadByUser(int messageId, string username)
 {
     _messageReadStatusRepo.MarkRead(username, messageId);
 }