I'm trying to create a seekable blob read stream for reading zip entry from my blob storage and for that I want to know what is the length of the content, and for that I need to call
BlobContainerClient client = blobServiceClient.GetBlobContainerClient("my-container");
BlobProperties properties = client.GetProperties()
long Length = properties.ContentLength;
At the initialization of the my seekable blob stream but the get properties is stuck and not returning back from the client
I tried this too
BlobContainerClient client = blobServiceClient.GetBlobContainerClient("my-container");
BlobProperties properties = client.GetPropertiesAsync().GetAwaiter().GetResult().Value;
long Length = properties.ContentLength;
The Nugets that I used there:
- Azure.Storage.Blobs Version="12.10.0"
- Microsoft.Azure.Management.Storage Version="23.0.0"
Thanks