Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 69285b8

Browse files
committed
feat: fixing blob container doesn't exist issue
1 parent ae98719 commit 69285b8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/ServiceLayer.Mesh/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@
6060

6161
services.AddSingleton(provider =>
6262
{
63-
return new BlobContainerClient(
63+
var client = new BlobContainerClient(
6464
Environment.GetEnvironmentVariable("AzureWebJobsStorage"),
6565
Environment.GetEnvironmentVariable("BlobContainerName"));
66+
client.CreateIfNotExistsAsync();
67+
// might wanna make this async
68+
return client;
6669
});
6770

6871
services.AddSingleton<IMeshFilesBlobStore, MeshFilesBlobStore>();

0 commit comments

Comments
 (0)