MCPcopy Create free account
hub / github.com/TryCatchLearn/Restore-v2 / ImageService

Method ImageService

API/Services/ImageService.cs:12–21  ·  view source on GitHub ↗
(IOptions<CloudinarySettings> config)

Source from the content-addressed store, hash-verified

10{
11 private readonly Cloudinary _cloudinary;
12 public ImageService(IOptions<CloudinarySettings> config)
13 {
14 var acc = new Account(
15 config.Value.CloudName,
16 config.Value.ApiKey,
17 config.Value.ApiSecret
18 );
19
20 _cloudinary = new Cloudinary(acc);
21 }
22
23 public async Task<ImageUploadResult> AddImageAsync(IFormFile file)
24 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected