From 1c0e7281d0522d447779967025e117dfad91ad2d Mon Sep 17 00:00:00 2001 From: Foqsz Date: Wed, 15 Oct 2025 10:38:40 -0300 Subject: [PATCH] feat: tornando o get url assincrono. --- .../Services/Storage/Aws/S3Service.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Backend/MyMusicLibrary.Infrastructure/Services/Storage/Aws/S3Service.cs b/src/Backend/MyMusicLibrary.Infrastructure/Services/Storage/Aws/S3Service.cs index ad07722..c2292cb 100644 --- a/src/Backend/MyMusicLibrary.Infrastructure/Services/Storage/Aws/S3Service.cs +++ b/src/Backend/MyMusicLibrary.Infrastructure/Services/Storage/Aws/S3Service.cs @@ -14,7 +14,7 @@ public class S3Service : IS3Service public S3Service(IAmazonS3 s3Client, string bucketName) { - this._s3Client = s3Client; + _s3Client = s3Client; this.bucketName = bucketName; } @@ -68,8 +68,8 @@ public async Task GetFileUrl(string key) Expires = DateTime.UtcNow.AddMinutes(expireMinutes), Verb = HttpVerb.GET }; - - var url = _s3Client.GetPreSignedURL(request); + + var url = await _s3Client.GetPreSignedURLAsync(request); return await Task.FromResult(new S3UrlDto(url: url)); }