Example #1
0
        public PhotosController(IConnectRepository connectRepository, IMapper mapper, IOptions <CloudinarySettings> cloudinaryOptions)
        {
            this._cloudinaryOptions = cloudinaryOptions;
            this._mapper            = mapper;
            this._connectRepository = connectRepository;

            Account account = new Account(this._cloudinaryOptions.Value.CloudName, this._cloudinaryOptions.Value.ApiKey, this._cloudinaryOptions.Value.ApiSecret);

            this._cloudinary = new Cloudinary(account);
        }
        public PhotosController(IConnectRepository 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);
        }
Example #3
0
 public UserController(IConnectRepository connectRepository, IMapper mapper)
 {
     this._mapper            = mapper;
     this._connectRepository = connectRepository;
 }
Example #4
0
 public MessagesController(IConnectRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Example #5
0
 public JobFactory(IConnectRepository ConnectRepository, IDetailsServerRepository serverRepository)
 {
     _connectRepository = ConnectRepository;
     _serverRepository  = serverRepository;
 }