Skip to content

Commit a04c847

Browse files
author
George Wallace
committed
removed createifnotexist method calls
1 parent a12d7b6 commit a04c847

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ImageResizeWebApp/ImageResizeWebApp/Helpers/StorageHelper.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public static async Task<bool> UploadFileToStorage(Stream fileStream, string fil
4141
// Get reference to the blob container by passing the name by reading the value from the configuration (appsettings.json)
4242
CloudBlobContainer container = blobClient.GetContainerReference(_storageConfig.ImageContainer);
4343

44-
// Create the container if not already exist
45-
await container.CreateIfNotExistsAsync();
46-
4744
// Get the reference to the block blob from the container
4845
CloudBlockBlob blockBlob = container.GetBlockBlobReference(fileName);
4946

@@ -69,9 +66,6 @@ public static async Task<List<string>> GetThumbNailUrls(AzureStorageConfig _stor
6966
// Get reference to the container
7067
CloudBlobContainer container = blobClient.GetContainerReference(_storageConfig.ThumbnailContainer);
7168

72-
// Create the container if it is not exists
73-
await container.CreateIfNotExistsAsync();
74-
7569
// Set the permission of the container to public
7670
await container.SetPermissionsAsync(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob });
7771

0 commit comments

Comments
 (0)