示例#1
0
 public HomeController(IHomePageService homePageService, ICategoryService categoryService, IAuthorizationService authorizationService, UserManager <ApplicationUser> userManager)
 {
     _homePageService      = homePageService;
     _categoryService      = categoryService;
     _authorizationService = authorizationService;
     _userManager          = userManager;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomePageController" /> class.
 /// </summary>
 /// <param name="configuration">Configuration</param>
 /// <param name="masterService">Master Service</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="hostingEnvironment">Hosting Enviorment</param>
 /// <param name="mapper">The mapper.</param>
 public HomePageController(IConfiguration configuration, IMasterService masterService, IHomePageService homePageService, IHostingEnvironment hostingEnvironment, IMapper mapper)
     : base(mapper, configuration)
 {
     this.masterService      = masterService;
     this.homePageService    = homePageService;
     this.hostingEnvironment = hostingEnvironment;
 }
 public HomeController(IHomePageService homePageService,
                       ICategoryPageService categoryPageService,
                       ISearchService searchService)
 {
     _homePageService     = homePageService ?? throw new ArgumentNullException(nameof(homePageService));
     _categoryPageService = categoryPageService ?? throw new ArgumentNullException(nameof(categoryPageService));
     _searchService       = searchService ?? throw new ArgumentNullException(nameof(categoryPageService));
 }
        public BrowserSettingsPageViewModel(IHomePageService homePageService, IFavoriteService favoriteService, IAccountService accountService)
        {
            HomePageForm = new UpdateHomePage();

            InitializeDependencies(homePageService, favoriteService, accountService);
            InitializeCommands();

            HomePageForm.CanExecutedChanged = SaveCommand.RaiseCanExecuteChanged;
        }
示例#5
0
 public HomeController(IHomePageService homePageService,
                       UserManager <ApplicationUser> userManager,
                       ICategoryService categoryService
                       )
 {
     _userManager     = userManager;
     _homePageService = homePageService;
     _categoryService = categoryService;
 }
示例#6
0
        private IHomePageService GetServiceClient()
        {
            BasicHttpBinding binding = new BasicHttpBinding();
            var              newsServiceReference = ConfigurationManager.AppSettings["HomePageService"];
            EndpointAddress  endpoint             = new EndpointAddress(newsServiceReference);
            IHomePageService client = ChannelFactory <IHomePageService> .CreateChannel(binding, endpoint);

            return(client);
        }
 public HomePageBusiness(IMasterService masterService, ICurationsService curationService, IListingService listingService, IBlogService blogService, IHomeBannerService homeBanner, ICountryService countryService, IHomePageService homePageService)
 {
     this.masterService   = masterService;
     this.curationService = curationService;
     this.listingService  = listingService;
     this.blogService     = blogService;
     this.homeBanner      = homeBanner;
     this.countryService  = countryService;
     this.homePageService = homePageService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController" /> class.
 /// </summary>
 /// <param name="stateService">State Service</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="tboService">TBO Service</param>
 /// <param name="configuration">Web Config</param>
 /// <param name="countryService">Country Service</param>
 /// <param name="cityService">City Service</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="userDetailService">The user detail service.</param>
 /// <param name="hostingEnvironment">The hosting environment.</param>
 /// <param name="domainSetting">The domain setting.</param>
 public UserController(IStateService stateService, IHomePageService homePageService, ITBOService tboService, IConfiguration configuration, ICountryService countryService, ICityService cityService, IMapper mapper, IUserDetailService userDetailService, IHostingEnvironment hostingEnvironment, IOptions <DomainSetting> domainSetting)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
     this.configuration      = configuration;
     this.mapper             = mapper;
     this.userDetailService  = userDetailService;
     this.domainSetting      = domainSetting.Value;
     this.hostingEnvironment = hostingEnvironment;
     this.tboController      = new TBOController(tboService, configuration, hostingEnvironment);
 }
示例#9
0
 public LocalizedMenuFilter(IHomePageService homePageService,
                            ICultureManager cultureManager,
                            IWorkContextAccessor workContextAccessor,
                            ISiteService siteService
                            )
 {
     _cultureManager      = cultureManager;
     _workContextAccessor = workContextAccessor;
     _siteService         = siteService;
     _homePageService     = homePageService;
 }
 public HomeController(
     IHomePageService service, 
     ICoursesService courses, 
     ISpecialtiesService specialties, 
     IUserService users)
 {
     this.homeService = service;
     this.coursesService = courses;
     this.specialtiesService = specialties;
     this.usersService = users;
 }
示例#11
0
 public CookieCulturePickerDriver(IOrchardServices orchardServices
                                  , ICultureService cultureService
                                  , IHomePageService homePageService
                                  , IBrowserCultureService browserCultureService
                                  , ICookieCultureService cookieCultureService)
 {
     _orchardServices       = orchardServices;
     _cultureService        = cultureService;
     _homePageService       = homePageService;
     _browserCultureService = browserCultureService;
     _cookieCultureService  = cookieCultureService;
 }
示例#12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController" /> class.
 /// </summary>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="stateService">State Service</param>
 /// <param name="configuration">Configuration</param>
 /// <param name="countryService">The Country Service.</param>
 /// <param name="cityService">The City Service.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="userDetailService">The user detail service.</param>
 /// <param name="masterService">The master service.</param>
 /// <param name="serviceProvider">The service provider.</param>
 /// <param name="applicationUserService">The application user service.</param>
 /// <param name="hotelBookingService">The hotel booking service.</param>
 /// <param name="flightBookingService">The flight booking service.</param>
 public AccountController(IHomePageService homePageService, IStateService stateService, IConfiguration configuration, ICountryService countryService, ICityService cityService, IMapper mapper, IUserDetailService userDetailService, IMasterService masterService, IServiceProvider serviceProvider, IApplicationUserService applicationUserService, IHotelBookingService hotelBookingService, IFlightBookingService flightBookingService)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
     this.configuration          = configuration;
     this.cityService            = cityService;
     this.countryService         = countryService;
     this.userDetailService      = userDetailService;
     this.masterService          = masterService;
     this.serviceProvider        = serviceProvider;
     this.applicationUserService = applicationUserService;
     this.hotelBookingService    = hotelBookingService;
     this.flightBookingService   = flightBookingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController" /> class.
 /// </summary>
 /// <param name="tableCacheHandler">to store result in blob cache</param>
 /// <param name="homePageBusiness">Cache Data from storage</param>
 /// <param name="stateService">State Service</param>
 /// <param name="configuration">Web Config</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="countryService">The Country Service.</param>
 /// <param name="cityService">The City Service.</param>
 /// <param name="listingService">Listing Service</param>
 /// <param name="blogService">Blog Service</param>
 /// <param name="curationService">Curation Service</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="masterService">The master service.</param>
 /// <param name="domainSetting">The domain setting.</param>
 /// <param name="hostingEnvironment">The hosting environment.</param>
 /// <param name="viewRenderService">The view render service.</param>
 /// <param name="userDetailService">The user detail service.</param>
 /// <param name="package">The package.</param>
 /// <param name="hotelBookingService">The hotel booking service.</param>
 /// <param name="homeBanner">The home banner.</param>
 /// <param name="dealService">Deal Service</param>
 public HomeController(ITableCacheHandler tableCacheHandler, IHomePageBusiness homePageBusiness, IStateService stateService, IConfiguration configuration, IHomePageService homePageService, ICountryService countryService, ICityService cityService, IListingService listingService, IBlogService blogService, ICurationsService curationService, IMapper mapper, IMasterService masterService, IOptions <DomainSetting> domainSetting, IHostingEnvironment hostingEnvironment, IViewRenderService viewRenderService, IUserDetailService userDetailService, IPackageService package, IHotelBookingService hotelBookingService, IHomeBannerService homeBanner, IDealService dealService)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
     this.tableCacheHandler  = tableCacheHandler;
     this.homePageBusiness   = homePageBusiness;
     this.homePageService    = homePageService;
     this.listingService     = listingService;
     this.package            = package;
     this.hostingEnvironment = hostingEnvironment;
     this.viewRenderService  = viewRenderService;
     this.domainSetting      = domainSetting.Value;
     this.masterService      = masterService;
     this.dealService        = dealService;
 }
示例#14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseController" /> class.
 /// </summary>
 /// <param name="mapper">The mapper.</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="cityService">The City Service</param>
 /// <param name="countryService">The Countery Service.</param>
 /// <param name="configuration">Web Config</param>
 /// <param name="stateService">State Service</param>
 public BaseController(
     IMapper mapper,
     IHomePageService homePageService,
     ICityService cityService,
     ICountryService countryService,
     IConfiguration configuration,
     IStateService stateService)
 {
     this.homePageService = homePageService;
     this.stateService    = stateService;
     this.configuration   = configuration;
     this.mapper          = mapper;
     this.cityService     = cityService;
     this.countryService  = countryService;
 }
示例#15
0
        public BrowserViewModel(IFavoriteService favoriteService, INavigationService navigationService, IAccountService accountService, IHomePageService homePageService)
        {
            _favoriteService   = favoriteService;
            _navigationService = navigationService;
            _accountService    = accountService;
            _homePageService   = homePageService;
            FavoriteForm       = new CreateFavorite();
            Favorites          = new ObservableCollection <Favorite>();

            InitializeWebView();
            InitializeCommands();

            HomePageUri = new HomePage();
            FavoriteForm.CanExecuteChanged = AddFavoriteCommand.RaiseCanExecuteChanged;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController" /> class.
 /// </summary>
 /// <param name="homePageBusiness">Home Page Business</param>
 /// <param name="tableCacheHandler">Table Cache Handler</param>
 /// <param name="stateService">State Service</param>
 /// <param name="configuration">Web Config</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="countryService">The Country Service.</param>
 /// <param name="cityService">The City Service.</param>
 /// <param name="listingService">Listing Service</param>
 /// <param name="mapper">The mapper.</param>
 public SearchController(
     IHomePageBusiness homePageBusiness,
     ITableCacheHandler tableCacheHandler,
     IStateService stateService,
     IConfiguration configuration,
     IHomePageService homePageService,
     ICountryService countryService,
     ICityService cityService,
     IListingService listingService,
     IMapper mapper)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
     this.homePageBusiness  = homePageBusiness;
     this.homePageService   = homePageService;
     this.tableCacheHandler = tableCacheHandler;
     this.listingService    = listingService;
 }
 public CountryPageController(IHomePageService homePageService)
 {
     _homePageService = homePageService;
 }
 private void InitializeDependencies(IHomePageService homePageService, IFavoriteService favoriteService, IAccountService accountService)
 {
     _homePageService = homePageService;
     _favoriteService = favoriteService;
     _accountService  = accountService;
 }
示例#19
0
 public HomePagePhotoController(IHomePageService service, ISecurityProvider security)
 {
     homePageService  = service;
     securityProvider = security;
     SetActiveTab(Tabs.Home);
 }
示例#20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ErrorController"/> class.
 /// Initialize Controller.
 /// </summary>
 /// <param name="configuration">The Web Config Service.</param>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="countryService">Country Service</param>
 /// <param name="cityService">City Service</param>
 /// <param name="mapper">Auto Mapper</param>
 /// <param name="stateService">State Service</param>
 /// <returns>
 /// error statuss
 /// </returns>
 public ErrorController(IConfiguration configuration, IHomePageService homePageService, ICountryService countryService, ICityService cityService, IMapper mapper, IStateService stateService)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
 }
示例#21
0
 public HomePagePhotoController(IHomePageService service, ISecurityProvider security)
 {
     homePageService = service;
     securityProvider = security;
     SetActiveTab(Tabs.Home);
 }
示例#22
0
 public HomePageController(IHomePageService _homePageService)
 {
     homePageService = _homePageService;
 }
示例#23
0
 public HomeController()
 {
     _homePageService = new HomePageService();
 }
示例#24
0
 public HomePageSearchBusiness(IHomePageService homePageService)
 {
     this.homePageService = homePageService;
 }
示例#25
0
 public LanguagePageController(IHomePageService homePageService)
 {
     _homePageService = homePageService;
 }
示例#26
0
 public HomePageServiceTest(ITestOutputHelper _outPut)
 {
     depend          = new Depend();
     homePageService = depend.serviceProvider.GetRequiredService <IHomePageService>();
     outPut          = _outPut;
 }
示例#27
0
 public HomeController(IHomePageService homePageService)
 {
     _homePageService = homePageService ?? throw new ArgumentNullException(nameof(homePageService));
 }
示例#28
0
 public HomeApiController(IHomePageService _home) : base()
 {
     this.home = _home;
 }
 public HomePageController(IHomePageService homePageService, IWebHostEnvironment hostEnvironment)
 {
     service            = homePageService;
     hostingEnvironment = hostEnvironment;
     service.SetDirectoryPath(hostingEnvironment.WebRootPath);
 }
示例#30
0
 public HomeController(IHomePageService homePageService)
 {
     this.indexService = homePageService;
 }
示例#31
0
 public HomeController(IHomePageService homePageService)
 {
     _homePageService = homePageService;
 }
示例#32
0
 public HomePageFilter(IHomePageService homePageService, IOrchardServices orchardServices)
 {
     _homePageService = homePageService;
     _orchardServices = orchardServices;
 }