I'm using Azure Storage Emulator. I have a CloudQueue and some messages. I want to retrieve the number of messages where Dequeue Count is greater than 3 for example.
I can do a loop for all the messages and increment a counter when a message has a Dequeue Count > 3 but I would like to find an optimized alternative.
How can I apply filters after fetching the queue ?
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["StorageConnection"];
CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();
CloudQueue queue = queueClient.GetQueueReference("testQueue");
queue.CreateIfNotExists();
queue.FetchAttributes();