Пример #1
0
        public PhotosController(IConnectHubRepository connectHubRepo, IMapper mapper, IOptions <CloudinarySettings> options)
        {
            _connectHubRepo = connectHubRepo;
            _mapper         = mapper;
            _options        = options;

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

            _cloudinary = new Cloudinary(acc);
        }
Пример #2
0
 public UsersController(IConnectHubRepository hubRepo, IMapper mapper)
 {
     _mapper  = mapper;
     _hubRepo = hubRepo;
 }
Пример #3
0
 public MessagesController(IConnectHubRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }