Refactored the S3 services to properly upload the file
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-20 08:01:44 +02:00
parent 89a343a85f
commit d6fdf1b9c8
12 changed files with 148 additions and 147 deletions
@@ -0,0 +1,11 @@
using LiteCharms.Features.S3.Abstractions;
using static LiteCharms.Features.S3.Constants;
namespace LiteCharms.Features.S3;
public class BookshopInvoicesS3Service(IConfiguration configuration, [FromKeyedServices(BookshopInvoicesBucketName)] IAmazonS3 amazonS3) :
S3ServiceBase(amazonS3), IS3Service
{
protected override string BucketName => configuration.GetSection($"{BookshopInvoicesS3SettingsSection}:BucketName").Value ?? "";
protected override string CdnBaseUrl => configuration.GetSection($"{BookshopInvoicesS3SettingsSection}:CdnBaseUrl").Value ?? "";
}