コード例 #1
0
        public AdministrationController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory, IAuthenticationService authenticationService, IMailer mailer)
            : base(loggedUserProvider, serviceFactory)
        {
            _accountService = serviceFactory.CreateAccountService();

            if (mailer == null)
                throw new ArgumentNullException("mailer");
            _mailer = mailer;

            if (authenticationService == null)
                throw new ArgumentNullException("authenticationService");
            _authenticationService = authenticationService;
            _authenticationService.AuthenticationManager = AuthenticationManager;
        }
コード例 #2
0
 public AccountProfileController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _accountService = serviceFactory.CreateAccountService();
     _accountProfileService = serviceFactory.CreateAccountProfileService();
 }