Very quick question regarding fetching list of blobs from Azure Storage (or to be more precise from container)
As I'm using .NET Core 2.2 and async streams are not allowed in C# 7.3 version:
await foreach (BlobItem blobItem in containerClient.GetBlobsAsync())
{
Console.WriteLine("\t" + blobItem.Name);
}
So I tried with something like this but without any luck (stabbing in the dark)
List<BlobItem> items = new List<BlobItem>();
Task.Factory.StartNew(async () => items.Add(await containerClient.GetBlobsAsync()));
So I'm wondering what's the alternative to await foreach syntax in C# v7.3
Thank you