Esempio n. 1
0
 /// <summary>
 ///  默认构造函数
 /// </summary>
 /// <param name="homeSearch">首页信息接口-房屋信息返回</param>
 /// <param name="homeTopShow">首页获取置顶数据相关接口</param>
 /// <param name="houseListService">房屋列表服务</param>
 /// <param name="topShow">置顶操作接口</param>
 /// <param name="houseBuySearchService">房屋求购查询服务</param>
 /// <param name="houseTransferSearchService">房屋转让查询服务</param>
 public HouseCache(IHomeSearch<HouseTransferInfo> homeSearch,
     IHomeTopShow homeTopShow,
     HouseListService houseListService,
     ITopShow topShow,
     HouseBuySearchService houseBuySearchService,
     HouseTransferSearchService houseTransferSearchService)
 {
     this.homeSearch = homeSearch;
     this.homeTopShow = homeTopShow;
     this.houseListService = houseListService;
     this.houseBuySearchService = houseBuySearchService;
     this.houseTransferSearchService = houseTransferSearchService;
     this.topShow = topShow;
 }
Esempio n. 2
0
 public GoodsCache(IHomeSearch<GoodsTransferInfo> homeSearch,
     IHomeTopShow homeTopShow,
     GoodsListService goodsListService,
     ITopShow topShow,
     GoodsBuySearchService goodsBuySearchService,
     GoodsTransferSearchService goodsTransferSearchService)
 {
     this.homeSearch = homeSearch;
     this.homeTopShow = homeTopShow;
     this.goodsListService = goodsListService;
     this.topShow = topShow;
     this.goodsBuySearchService = goodsBuySearchService;
     this.goodsTransferSearchService = goodsTransferSearchService;
 }
Esempio n. 3
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="homeSearch">首页信息接口-车辆信息返回</param>
 /// <param name="homeTopShow">首页获取置顶数据相关接口</param>
 /// <param name="carListService">车辆列表服务</param>
 /// <param name="topShow">置顶操作接口</param>
 /// <param name="carBuySearchService">车辆求购查询服务</param>
 /// <param name="carTransferSearchService">车辆转让查询服务</param>
 public CarCache(IHomeSearch<CarTransferInfo> homeSearch,
     IHomeTopShow homeTopShow,
     CarListService carListService,
     ITopShow topShow,
     CarBuySearchService carBuySearchService,
     CarTransferSearchService carTransferSearchService)
 {
     this.homeSearch = homeSearch;
     this.homeTopShow = homeTopShow;
     this.carListService = carListService;
     this.topShow = topShow;
     this.carBuySearchService = carBuySearchService;
     this.carTransferSearchService = carTransferSearchService;
 }
Esempio n. 4
0
        public AdminController(GlobalCache gloablCache,
            ICarUserCenter carUserCenter,
            IGoodsUserCenter goodsUserCenter,
            IHouseUserCenter houseUserCenter,
            ITopShow topShow,
            IBuyGoods buyGoods,
            ITransferGoods transferGoods,
            IBuyCar buyCar,
            ITransferCar transferCar,
            IBuyHouse buyHouse,
            ITransferHouse transferHouse,
            ICarBuyJob carBuyJob,
            ICarTransferJob carTransferJob,
            IHouseBuyJob houseBuyJob,
            IHouseTransferJob houseTransferJob,
            IGoodsBuyJob goodsBuyJob,
            IGoodsTransferJob goodsTransferJob)
        {
#if DEBUG

#else
            if (User == null || User.Identity == null || 
                User.Identity.Name == null || !User.Identity.Name.Equals("*****@*****.**"))
            {
                RedirectPermanent("http://yingtao.co.uk/Home/Index");
            }
#endif
            this.gloablCache = gloablCache;
            this.carUserCenter = carUserCenter;
            this.houseUserCenter = houseUserCenter;
            this.goodsUserCenter = goodsUserCenter;
            this.topShow = topShow;
            this.buyGoods = buyGoods;
            this.transferGoods = transferGoods;
            this.buyCar = buyCar;
            this.transferCar = transferCar;
            this.buyHouse = buyHouse;
            this.transferHouse = transferHouse;
            this.carBuyJob = carBuyJob;
            this.carTransferJob = carTransferJob;
            this.houseBuyJob = houseBuyJob;
            this.houseTransferJob = houseTransferJob;
            this.goodsBuyJob = goodsBuyJob;
            this.goodsTransferJob = goodsTransferJob;
        }