public async Task <UserRegistrationResponse> RegisterUserAsync(UserRegistrationRequest request) { var userRegistrationContext = new UserRegistrationContext(request, this.userManager, this.roleManager); var result = await userRegistrationContext.ProcessAsync(); return(result); }
public AddMemberViewModel() { _userContext = ContextFactory.GetUserRegistrationContext(); _saveChangesCommand = new RelayCommand(OnSaveChanges); UserToInsert = new NewUserData(); IsLoggedIn = true; UpdateForUsersRole(); }
/// <summary> /// Creates a new <see cref="RegistrationForm"/> instance. /// </summary> public RegistrationForm() { var configService = IoC.Resolve <IConfigurationService>(); userRegistrationContext = new UserRegistrationContext(new Uri(configService.GetParameterValue("UserRegistrationUri"), UriKind.Absolute)); InitializeComponent(); // Set the DataContext of this control to the // Registration instance to allow for easy binding. this.DataContext = this.registrationData; }
public EditMemberViewModel() { _memberContext = ContextFactory.GetTeamContext(); _userContext = ContextFactory.GetUserRegistrationContext(); _countryContext = ContextFactory.GetCountryContext(); _membershipContext = ContextFactory.GetMembershipContext(); _saveChangesCommand = new RelayCommand( OnSaveChanges ); _changePasswordCommand = new RelayCommand( OnChangePassword ); statusTimer = new DispatcherTimer(); statusTimer.Interval = new TimeSpan( 0, 0, 0, 3 ); statusTimer.Tick += new EventHandler( OnTimerTick ); IsStatusVisible = Visibility.Collapsed; IsLoggedIn = true; //LoadData(id); UpdateForUsersRole(); }
internal void EmailBodyUserEmail(string emailAddress, string fromDisplayName, string from, string subject, string body, Action<InvokeOperation> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.EmailBodyUserEmail(emailAddress, fromDisplayName, from, subject, body, completedAction, userState); }
internal void EmailTemplateUser(string userName, string fromDisplayName, string from, string subject, string bodyFileName, string replacements, Action<InvokeOperation> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.EmailTemplateUser(userName, fromDisplayName, from, subject, bodyFileName, replacements, completedAction, userState); }
internal void UnlockUser(string userName, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.UnlockUser(userName, completedAction, userState); }
internal void ChangePasswordQuestionAndAnswer(string userName, string password, string newPasswordQuestion, string newPasswordAnswer, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ChangePasswordQuestionAndAnswer(userName, password, newPasswordQuestion, newPasswordAnswer, completedAction, userState); }
internal void ChangePassword(string userName, string currentPassword, string newPassword, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ChangePassword(userName, currentPassword, newPassword, completedAction, userState); }
public static UserRegistrationContext GetUserRegistrationContext() { return _userRegistrationContext ?? (_userRegistrationContext = new UserRegistrationContext()); }
internal void ValidateResetPasswordCode(string resetPasswordCode, Action<InvokeOperation<string>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ValidateResetPasswordCode(resetPasswordCode, completedAction, userState); }
internal void DeleteUser(string userName, bool deleteAllRelatedData, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.DeleteUser(userName, deleteAllRelatedData, completedAction, userState); }
internal void CreateUser(string userName, string password, string emailAddress, string roleName, Action<InvokeOperation> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.CreateUser(userName, password, emailAddress, roleName, completedAction, userState); }
internal void ValidateUser(string userName, string password, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ValidateUser(userName, password, completedAction, userState); }
public UserRegistrationUnitOfWork(UserRegistrationContext context) { _context = context; }
internal void GetUserNameByEmail(string emailToMatch, Action<InvokeOperation<string>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.GetUserNameByEmail(emailToMatch, completedAction, userState); }
internal void GetNumberOfUsersOnline(Action<InvokeOperation<int>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.GetNumberOfUsersOnline(completedAction, userState); }
internal void ResetAndChangePassword(string resetPasswordCode, string newPassword, Action<InvokeOperation<bool>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ResetAndChangePassword(resetPasswordCode, newPassword, completedAction, userState); }
public UserRepository(UserRegistrationContext context) { _context = context; }
internal void ResetPassword(string userName, Action<InvokeOperation<string>> completedAction, object userState) { UserRegistrationContext membership = new UserRegistrationContext(); membership.ResetPassword(userName, completedAction, userState); }