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