Exemple #1
0
        // User Update
        private void TryRaiseUserUpdatedEvent(JObject userUpdatedEvent)
        {
            var source = GetSourceUser(userUpdatedEvent);
            var newAuthenticatedUser = _userFactory.GenerateAuthenticatedUserFromDTO(source.UserDTO);

            this.Raise(AuthenticatedUserProfileUpdated, new AuthenticatedUserUpdatedEventArgs(newAuthenticatedUser));
        }
Exemple #2
0
        // Profile
        public IAuthenticatedUser UpdateAccountProfile(IAccountUpdateProfileParameters parameters)
        {
            var userDTO = _accountQueryExecutor.UpdateProfileParameters(parameters);

            return(_userFactory.GenerateAuthenticatedUserFromDTO(userDTO));
        }