public PhotosController(IThatsMeRepo 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);
        }
Beispiel #2
0
 public MessagesController(IThatsMeRepo repo, IMapper mapper, IHubContext <MessageHub> hubContext)
 {
     _repo       = repo;
     _mapper     = mapper;
     _hubContext = hubContext;
 }
Beispiel #3
0
 public UsersController(IThatsMeRepo repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }