Beispiel #1
0
        public EmailVerifier(AccountConfiguration config, AccountRepository repo)
        {
            if (config == null) throw new ArgumentNullException("config");

             this.config = config;
             this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo));
        }
Beispiel #2
0
        public PasswordChanger(AccountConfiguration config, IAccountContext context, AccountRepository repo, PasswordService passServ)
        {
            if (config == null) throw new ArgumentNullException("config");
             if (context == null) throw new ArgumentNullException("context");

             this.context = context;
             this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo));
             this.passServ = config.RequireDependency(passServ);
        }
Beispiel #3
0
        public EmailChanger(AccountConfiguration config, IAccountContext context, AccountRepository repo, PasswordService passwordService, FormsAuthenticationService formsAuthService)
        {
            if (config == null) throw new ArgumentNullException("config");
             if (context == null) throw new ArgumentNullException("context");

             this.config = config;
             this.context = context;
             this.repo = new AccountRepositoryWrapper(config.RequireDependency(repo));
             this.passServ = config.RequireDependency(passwordService);
             this.formsAuthService = config.RequireDependency(formsAuthService);
        }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeController"/> class, 
 /// with the provided <paramref name="repo"/> and <paramref name="passwordService"/>.
 /// </summary>
 /// <param name="repo">The account repository.</param>
 /// <param name="passwordService">The password service.</param>
 public ChangeController(AccountRepository repo, PasswordService passwordService)
     : this()
 {
     this.repo = new AccountRepositoryWrapper(repo);
      this.passServ = passwordService;
 }
Beispiel #5
0
        /// <summary>
        /// Initializes data that might not be available when the constructor is called.
        /// </summary>
        /// <param name="requestContext">The HTTP context and route data.</param>
        protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);

             this.repo = this.Configuration.RequireDependency(this.repo);
             this.passServ = this.Configuration.RequireDependency(this.passServ);
        }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VerifyController"/> class, 
 /// with the provided <paramref name="repo"/>.
 /// </summary>
 /// <param name="repo">The account repository.</param>
 public VerifyController(AccountRepository repo)
     : this()
 {
     this.repo = new AccountRepositoryWrapper(repo);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticationController"/> class, 
 /// with the provided <paramref name="repo"/> and <paramref name="passwordService"/>.
 /// </summary>
 /// <param name="repo">The account repository.</param>
 /// <param name="passwordService">The password service.</param>
 public AuthenticationController(AccountRepository repo, PasswordService passwordService)
     : this()
 {
     this.repo = new AccountRepositoryWrapper(repo);
      this.passServ = passwordService;
 }