Files
components/LiteCharms.Features/S3/BookshopQuotesS3Service.cs
T
Khwezi Mngoma d6fdf1b9c8
continuous-integration/drone/pr Build is passing
Refactored the S3 services to properly upload the file
2026-05-20 08:01:44 +02:00

12 lines
570 B
C#

using LiteCharms.Features.S3.Abstractions;
using static LiteCharms.Features.S3.Constants;
namespace LiteCharms.Features.S3;
public class BookshopQuotesS3Service(IConfiguration configuration, [FromKeyedServices(BookshopQuotesBucketName)] IAmazonS3 amazonS3) :
S3ServiceBase(amazonS3), IS3Service
{
protected override string BucketName => configuration.GetSection($"{BookshopQuotesS3SettingsSection}:BucketName").Value ?? "";
protected override string CdnBaseUrl => configuration.GetSection($"{BookshopQuotesS3SettingsSection}:CdnBaseUrl").Value ?? "";
}