public HomeController(TodayHouseDashboardJob houseDashboardJob,
                       HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       PinPaiGongYuHouseCrawler pinpai,
                       PeopleRentingCrawler people,
                       DoubanHouseCrawler douban,
                       CCBHouesCrawler ccbHouse,
                       ZuberHouseCrawler zuber,
                       MoGuHouseCrawler mogu,
                       HKSpaciousCrawler hkSpacious,
                       BaiXingHouseCrawler baixing,
                       SyncHousesToESJob syncHousesToESJob,
                       ElasticsearchService elasticsearchService)
 {
     this.houseDashboardJob     = houseDashboardJob;
     this.houseDapper           = houseDapper;
     this.houseDashboardService = houseDashboardService;
     this.pinpai               = pinpai;
     this.people               = people;
     this.douban               = douban;
     this.ccbHouse             = ccbHouse;
     this.zuber                = zuber;
     this.mogu                 = mogu;
     this.hkSpacious           = hkSpacious;
     this.baixing              = baixing;
     this.syncHousesToESJob    = syncHousesToESJob;
     this.elasticsearchService = elasticsearchService;
 }
Esempio n. 2
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            //var userId = ((ClaimsIdentity)HttpContext.User.Identity).FindFirst(ClaimTypes.NameIdentifier);
            var dashboards = HouseDashboardService.LoadDashboard();

            return(View(dashboards));
        }
Esempio n. 3
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            var idAndName = GetUserIDAndName();

            ViewBag.UserId   = idAndName.Item1;
            ViewBag.UserName = idAndName.Item2;
            var dashboards = HouseDashboardService.LoadDashboard();

            return(View(dashboards));
        }
Esempio n. 4
0
 public HomeController(HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       ConfigurationDapper configurationDapper,
                       UserCollectionDapper userCollectionDapper)
 {
     this.houseDapper           = houseDapper;
     this.houseDashboardService = houseDashboardService;
     this.configurationDapper   = configurationDapper;
     this.userCollectionDapper  = userCollectionDapper;
 }
Esempio n. 5
0
 public HomeController(HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       ConfigDapper configurationDapper,
                       UserCollectionDapper userCollectionDapper,
                       UserService useService)
 {
     _houseDapper           = houseDapper;
     _houseDashboardService = houseDashboardService;
     _configurationDapper   = configurationDapper;
     _userCollectionDapper  = userCollectionDapper;
     _useService            = useService;
 }
Esempio n. 6
0
 public HomeController(HouseDashboardJob houseDashboardJob,
                       HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       PinPaiGongYuHouseCrawler pinpai,
                       PeopleRentingCrawler people,
                       DoubanHouseCrawler douban,
                       CCBHouesCrawler ccbHouse,
                       ZuberHouseCrawler zuber,
                       MoGuHouseCrawler mogu,
                       HKSpaciousCrawler hkSpacious)
 {
     this.houseDashboardJob     = houseDashboardJob;
     this.houseDapper           = houseDapper;
     this.houseDashboardService = houseDashboardService;
     this.pinpai     = pinpai;
     this.people     = people;
     this.douban     = douban;
     this.ccbHouse   = ccbHouse;
     this.zuber      = zuber;
     this.mogu       = mogu;
     this.hkSpacious = hkSpacious;
 }
Esempio n. 7
0
 public JobsController(TodayHouseDashboardJob houseDashboardJob,
                       HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       PinPaiGongYuHouseCrawler pinpai,
                       PeopleRentingCrawler people,
                       DoubanHouseCrawler douban,
                       CCBHouesCrawler ccbHouse,
                       ZuberHouseCrawler zuber,
                       MoGuHouseCrawler mogu,
                       HKSpaciousCrawler hkSpacious,
                       BaiXingHouseCrawler baixing,
                       ChengduZufangCrawler chengdu,
                       SyncHousesToESJob syncHousesToESJob,
                       ElasticsearchService elasticsearchService,
                       RefreshHouseCacheJob refreshHouseCacheJob,
                       RefreshHouseSourceJob refreshHouseSourceJob,
                       BeikeHouseCrawler beike)
 {
     this.houseDashboardJob     = houseDashboardJob;
     this.houseDapper           = houseDapper;
     this.houseDashboardService = houseDashboardService;
     this.pinpai                = pinpai;
     this.people                = people;
     this.douban                = douban;
     this.ccbHouse              = ccbHouse;
     this.zuber                 = zuber;
     this.mogu                  = mogu;
     this.hkSpacious            = hkSpacious;
     this.baixing               = baixing;
     this.syncHousesToESJob     = syncHousesToESJob;
     this.elasticsearchService  = elasticsearchService;
     this.refreshHouseCacheJob  = refreshHouseCacheJob;
     this.refreshHouseSourceJob = refreshHouseSourceJob;
     this.beike                 = beike;
     this.chengdu               = chengdu;
 }
 public RefreshDashboardJob(HouseDashboardService houseDashboardService)
 {
     this.houseDashboardService = houseDashboardService;
 }
Esempio n. 9
0
 // GET: /<controller>/
 public IActionResult Index()
 {
     return(View(HouseDashboardService.LoadDashboard()));
 }
Esempio n. 10
0
 public void Run()
 {
     HouseDashboardService.LoadDashboard();
 }