示例#1
0
        public PhotosController(IMeetPeopleRepository repo, IMapper mapper, IOptions <CloudinarySettings> options)
        {
            _options = options;
            _mapper  = mapper;
            _repo    = repo;

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

            _cloudinary = new Cloudinary(acc);
        }
示例#2
0
 public UsersController(IMeetPeopleRepository repo, IMapper mapper, IHubContext <MessageHub> hub)
 {
     _hub    = hub;
     _mapper = mapper;
     _repo   = repo;
 }