예제 #1
0
        private void HandleUpdatedUsersList(object sender, MessageContainer msgContainer)
        {
            var messageRequest   = ((JObject)msgContainer.Payload).ToObject(typeof(UpdatedClientsResponse)) as UpdatedClientsResponse;
            var UpdatedUsersList = messageRequest.UsersList;

            UpdatedUsersListEvent?.Invoke(UpdatedUsersList);
        }
예제 #2
0
 private void HandleUpdatedUsersList(object sender, MessageContainer msgContainer)
 {
     if (((JObject)msgContainer.Payload).ToObject(typeof(UpdatedClientsResponse)) is UpdatedClientsResponse messageRequest)
     {
         UpdatedUsersListEvent?.Invoke(messageRequest.ActiveUsersList, messageRequest.NotActiveUsersList);
     }
 }
예제 #3
0
 public void HandleUpdatedUsersList(List <string> activeUsersList, List <string> notActiveUsersList)
 {
     ApplicationDispatcherHelper.BeginInvoke(() => UpdatedUsersListEvent?.Invoke(activeUsersList, notActiveUsersList));
 }