コード例 #1
0
		public AccountController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory, IAuthenticationService authenticationService, IMailer mailer)
			: base(loggedUserProvider, serviceFactory)
		{
			if (mailer == null)
				throw new ArgumentNullException("mailer");
			_mailer = mailer;

			if (authenticationService == null)
				throw new ArgumentNullException("authenticationService");
			_authenticationService = authenticationService;
			_authenticationService.AuthenticationManager = AuthenticationManager;

			_accountService = ServiceFactory.CreateAccountService();
		}
コード例 #2
0
 public NewsController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _newsService = ServiceFactory.CreateNewsService();
     _resourceService = serviceFactory.CreateResourceService();
 }
コード例 #3
0
 public AccountProfileController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _accountService = serviceFactory.CreateAccountService();
     _accountProfileService = serviceFactory.CreateAccountProfileService();
 }
コード例 #4
0
 public HomeController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _newsService = serviceFactory.CreateNewsService();
 }