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