コード例 #1
0
 public HomeController(IBlogApplicationService blogService, ILocationApplicationService locationService, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory, IMapper mapper, IEmailService emailService, IMailingListApplicationService mailingListService, AppSettings appSettings)
     : base(mapper, emailService, appSettings)
 {
     if (blogService == null)
     {
         throw new ArgumentNullException("blogService");
     }
     _blogService     = blogService;
     _locationService = locationService;
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _mailingListService = mailingListService;
 }
コード例 #2
0
 public HomeController(ControllerServicesContext context, IBlogApplicationService blogService, ILocationApplicationService locationService, IFileSystemGenericRepositoryFactory fileSystemGenericRepositoryFactory, IMapper mapper, IEmailService emailService, IMailingListApplicationService mailingListService, IWebHostEnvironment hostingEnvironment, JsonNavigationService navigationService)
     : base(context, navigationService)
 {
     if (blogService == null)
     {
         throw new ArgumentNullException("blogService");
     }
     _blogService     = blogService;
     _locationService = locationService;
     _fileSystemGenericRepositoryFactory = fileSystemGenericRepositoryFactory;
     _mailingListService = mailingListService;
     _hostingEnvironment = hostingEnvironment;
 }