Implement azurite

This commit is contained in:
2025-06-09 00:39:20 -06:00
parent eda79010ce
commit 626105cf0c
3 changed files with 72 additions and 8 deletions

View File

@@ -22,6 +22,12 @@ namespace Core.Blueprint.Storage.Configuration
{
if (environment == "Local")
{
var accountKey = configuration.GetSection("BlobStorage:AccountKey").Value;
var accountName = configuration.GetSection("BlobStorage:AccountName").Value;
if(string.IsNullOrEmpty(accountKey) && string.IsNullOrEmpty(accountName))
throw new ArgumentException("The BlobStorage configuration section is missing or empty.");
cfg.AddBlobServiceClient(configuration.GetConnectionString("BlobStorage"));
}
else