TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ragavendar S
NA
192
9.6k
Storage Queue Deletion
Oct 10 2017 9:18 AM
Hi ,
I have created a storage queue (
Azure Web
) and added some elements to the that queue, while tried to delete the particular message in the queue based on id only top element in the queue gets deleted.
public string DeleteMsgQueue(string connectionString, string queueName)
{
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);
CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();
CloudQueue queue = queueClient.GetQueueReference(queueName); CloudQueueMessage retrievedMessage = queue.GetMessage();
// await queue.DeleteMessageAsync(message.Id, retrievedMessage.PopReceipt);
queue.DeleteMsg(retrievedMessage);
return "Message De-Queued";
}
Reply
Answers (
3
)
Continuous Deployment and Release Management
How secure is cloud computing?