コード例 #1
0
        public PhotosController(IVisageRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            this.cloudinaryConfig = cloudinaryConfig;
            this.mapper           = mapper;
            this.repo             = repo;

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

            cloudinary = new Cloudinary(acc);
        }
コード例 #2
0
ファイル: MessagesController.cs プロジェクト: Katiaras/Visage
 public MessagesController(IVisageRepository repo, IMapper mapper)
 {
     this.mapper = mapper;
     this.repo   = repo;
 }