コード例 #1
0
 public PhotosController(IHostingEnvironment host, IRealEstateRepository realEstateRepository, IPhotoRepository photoRepository, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoService photoService)
 {
     this.photoService         = photoService;
     this.photoSettings        = options.Value;
     this.mapper               = mapper;
     this.realEstateRepository = realEstateRepository;
     this.photoRepository      = photoRepository;
     this.host = host;
 }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            var container = new Container(_ =>
            {
                _.Scan(x =>
                {
                    x.TheCallingAssembly();
                    x.WithDefaultConventions();
                });
                _.For <IRealEstateRepository>().Use <RealEstateRepository>();
            });

            realEstateRepository = container.GetInstance <IRealEstateRepository>();
        }
コード例 #3
0
        public UserPhotoController(IRealEstateRepository repo, IMapper mapper,
                                   IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
コード例 #4
0
 public RealEstateService(IPersistenceContext persistenceContext, IServiceLocator serviceLocator)
 {
     PersistenceContext = persistenceContext;
     ServiceLocator     = serviceLocator;
     Repository         = ServiceLocator.GetInstance <IRealEstateRepository>();
 }
コード例 #5
0
 public UsersController(IRealEstateRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
コード例 #6
0
 public HousesController(IRealEstateRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
コード例 #7
0
 public HousesController(IRealEstateRepository repository, ILogger<HousesController> logger, CoordService coordService)
 {
     _repository = repository;
     _logger = logger;
     _coordService = coordService;
 }
コード例 #8
0
 public RealEstateService(IRealEstateRepository realEstateRepository)
 {
     _realEstateRepository = realEstateRepository;
 }
コード例 #9
0
 public RealEstateService(IRealEstateRepository realEstateRepository, UserManager <User> userManager)
 {
     _realEstateRepository = realEstateRepository;
     _userManager          = userManager;
 }
コード例 #10
0
 public ImagesController(IRealEstateRepository repository, ILogger<HousesController> logger)
 {
     _repository = repository;
     _logger = logger;
 }
コード例 #11
0
 public RealEstatesController(IMapper mapper, IRealEstateRepository realEstateRepository, IUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
     this.repository = realEstateRepository;
     this.mapper     = mapper;
 }
コード例 #12
0
 public HomeController(IRealEstateRepository realEstateRepository)
 {
     _realEstateRepository = realEstateRepository;
 }
コード例 #13
0
 public RealEstateController(IDepartmentRepository departmentRepository, ICategoryRepository categoryRepository, IRealEstateRepository realEstateRepository)
 {
     _departmentRepository = departmentRepository;
     _categoryRepository   = categoryRepository;
     _realEstateRepository = realEstateRepository;
 }
コード例 #14
0
 public AppController(Services.IMailService service, IRealEstateRepository dbContext)
 {
     _mailService = service;
     _repository = dbContext;
 }
コード例 #15
0
 public ShoppingCartController(IRealEstateRepository realEstateRepository, ShoppingCart shoppingCart)
 {
     _realEstateRepository = realEstateRepository;
     _shoppingCart         = shoppingCart;
 }