I need to know how I can retrieve the last created blob in my blob storage. Now I'm doing it with a for loop, but there are approximately 50000 blockblobs in the directory.
How can I get the last created block blob on a efficient way?
My code is as follows:
string url = null;
foreach (var blobItem in subdir.ListBlobs())
{
url = blobItem.Uri.ToString();
}
url += signature;
if (url != pictureBoxLiveViewer.ImageLocation)
{
pictureBoxLiveViewer.ImageLocation = url;
}
This is a function in a timer who's ticking every minute. So this is inefficient.