public PhotosController(ITechRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _repo = repo; _mapper = mapper; _cloudinaryConfig = cloudinaryConfig; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public HomeController(ITechRepository repo, IFileManager fileManager) { _repo = repo; _fileManager = fileManager; }
public MeController(ITechRepository tech,IPageOptions page) { _tech = tech; _page = page; }
public HomeController(ITechRepository techRepository) { _techRepository = techRepository; }
public ShoppingCartController(ITechRepository techRepository, ShoppingCart shoppingCart) { _techRepository = techRepository; _shoppingCart = shoppingCart; }
public TechBusiness(ITechRepository techRepository) { _techRepository = techRepository; }
public TechManagementController(ITechRepository techRepository, ICategoryRepository categoryRepository) { _techRepository = techRepository; _categoryRepository = categoryRepository; }
public NavigateController(ITechRepository repo) { repository = repo; }
public CartController(ITechRepository repo) { repository = repo; }
public CartController(ITechRepository repo, IOrderProcessor processor) { repository = repo; orderProcessor = processor; }
public UsersController(ITechRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
// 의존성 주입: ITechRepository의 인스턴스를 TechRepository의 인스턴스로 public TechesApiController(ITechRepository repo) { _repo = repo; }
public MembersController(ITechRepository repo) { _repo = repo; }