Пример #1
0
        public void ReadUser(int roleid, int orgId)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadUser(roleid, orgId, ReadUserCompleted);

            //ReadUserNamesFromEwav();
        }
        public override Product Create(string description)
        {
            Target userServiceAgent = new UserServiceAgent("User Agent");

            userServiceAgent.Link = "URL to Shipping Service";
            Target emailClient = new EmailClient("Email");

            emailClient.Link = "URL to Royalty Department Service";

            Product membership = new Membership(description);

            membership.Outputs = new List <Output>();
            membership.Outputs.Add(new PackingSlip("Membership Change", membership, userServiceAgent));
            membership.Outputs.Add(new PackingSlip("Membership Change", membership, emailClient));

            return(membership);
        }
Пример #3
0
        /// <summary>
        /// Loads the user from activedirectory.
        /// </summary>
        /// <param name="EmailAddress">The email address.</param>
        public void LoadUserFromActivedirectory(string EmailAddress)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.LoadUserFromActivedirectory(EmailAddress, UserFromADLoadedComplete);
        }
Пример #4
0
        /// <summary>
        /// Loads the user.
        /// </summary>
        /// <param name="userDto">The user dto.</param>
        public void LoadUser(string UserName)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.LoadUser(UserName, UserLoadedComplete);
        }
Пример #5
0
        public void ReadUserByUserName(string UserName, int OrganizationId)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadUserByUserName(UserName, OrganizationId, ReadUserByNameCompleted);
        }
Пример #6
0
        public void ReadUserNamesFromEwav()
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadUserNamesFromEwav(ReadUserNamesFromEwavCompleted);
        }
Пример #7
0
        public void ReadAssociatedDatasources(int UserId, int OrganizationId)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadAssociatedDatasources(UserId, OrganizationId, ReadAssociatedDatasourcesCompleted);
        }
Пример #8
0
        public void AddUser(UserOrganizationDto dto)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.AddUser(dto, AddUserCompleted);
        }
Пример #9
0
        public void UpdateUser(UserOrganizationDto dto)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.UpdateUser(dto, UpdateUserCompleted);
        }
Пример #10
0
        /// <summary>
        /// Authenticates the specified user dto.
        /// </summary>
        /// <param name="userDto">The user dto.</param>
        public void Authenticate(UserDTO userDto)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.GetUserForAuthentication(userDto, UserAuthenticatedComplete);
        }
Пример #11
0
        /// <summary>
        /// Forgot password
        /// </summary>
        /// <param name="email"></param>
        public void ForgotPassword(string email)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ForgotPassword(email, ForgotPasswordCompleted);
        }
Пример #12
0
        public void ReadPasswordRules()
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadPasswordRules(PasswordRulesReadCompleted);
        }
Пример #13
0
        // TODO: Add properties using the mvvmprop code snippet


        #endregion

        #region Methods

        public void DeleteUser(int userid)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.DeleteUser(userid, DeleteUserCompleted);
        }
Пример #14
0
        /// <summary>
        /// Reads all orgs for user.
        /// </summary>
        /// <param name="userID">The user ID.</param>
        public void ReadAllOrgsForUser(int userID)
        {
            UserServiceAgent usa = new UserServiceAgent();

            usa.ReadAllOrgsForUser(userID, ReadAllOrgsForUserCompleted);
        }