Esempio n. 1
0
        public void FireAfterProfileUpdated(object sender, UpdateProfileEventArgs eventArgs)
        {
            var handler = AfterUpdateProfile;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Save user (does NOT update password data)
        /// </summary>
        /// <param name="user"></param>
        public void ProfileUpdated(MembershipUser user)
        {
            var e = new UpdateProfileEventArgs { User = user };
            EventManager.Instance.FireBeforeProfileUpdated(this, e);

            if (!e.Cancel)
            {
                EventManager.Instance.FireAfterProfileUpdated(this, new UpdateProfileEventArgs { User = user });
                _activityService.ProfileUpdated(user);
            }
        }
 private void eventsService_AfterUpdateProfile(object sender, UpdateProfileEventArgs args)
 {
     args.User.Email = TestString;
 }
 private void eventsService_BeforeUpdateProfileCancel(object sender, UpdateProfileEventArgs args)
 {
     args.Cancel = true;
 }
 private void eventsService_BeforeUpdateProfileAllow(object sender, UpdateProfileEventArgs args)
 {
     args.Cancel = false;
 }
Esempio n. 6
0
        public void FireBeforeProfileUpdated(object sender, UpdateProfileEventArgs eventArgs)
        {
            var handler = BeforeUpdateProfile;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }