public PictureService( IAsyncRepository <Picture> pictureRepository, Cloudinary cloudinary, CloudinaryOptions cloudinaryOptions) { _pictureRepository = pictureRepository; _cloudinary = cloudinary; _cloudinaryOptions = cloudinaryOptions; }
public CloudinaryService(IOptions <CloudinaryOptions> options) { this.options = options.Value; var account = new Account( this.options.CloudName, this.options.ApiKey, this.options.ApiSecret); this.cloudinary = new CloudinaryDotNet.Cloudinary(account); }
public PictureService(AuctionSystemDbContext context, IOptions <CloudinaryOptions> options) : base(context) { this.options = options.Value; var account = new Account( this.options.CloudName, this.options.ApiKey, this.options.ApiSecret); this.cloudinary = new Cloudinary(account); }
public SlotService( IAsyncRepository <Picture> pictureRepository, IOptions <CloudinaryOptions> cloudinaryOptions) { _pictureRepository = pictureRepository; _cloudinaryOptions = cloudinaryOptions.Value; var account = new Account( _cloudinaryOptions.CloudName, _cloudinaryOptions.ApiKey, _cloudinaryOptions.ApiSecret); _cloudinary = new Cloudinary(account); }
public PictureService(IOptions <CloudinaryOptions> options, ApplicationDbContext dbContext, IMapper mapper) { this._dbContext = dbContext; this._mapper = mapper; this.options = options.Value; var account = new Account( this.options.CloudName, this.options.ApiKey, this.options.ApiSecret); this.cloudinary = new CloudinaryDotNet.Cloudinary(account); }
public CreatePictureCommandHandler( IAuctionSystemDbContext context, ICurrentUserService currentUserService, IMapper mapper, IOptions<CloudinaryOptions> options) { this.context = context; this.currentUserService = currentUserService; this.mapper = mapper; this.options = options.Value; var account = new Account( this.options.CloudName, this.options.ApiKey, this.options.ApiSecret); this.cloudinary = new Cloudinary(account); }
public PlanetCollageController(IOptions <CloudinaryOptions> cloudinaryOptions) { CloudinaryOptions = cloudinaryOptions.Value; }