예제 #1
0
        public PhotosController(IRinkRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            // Create the cloudinary account per the docs.
            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
예제 #2
0
 public UsersController(IRinkRepository repo, IMapper mapper)
 {
     this._mapper = mapper;
     this._repo   = repo;
 }
예제 #3
0
 public MessagesController(IRinkRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }