[FEATURE REQ][Storage] Ability to receive ONE message from Queue #14211
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Library or service name.
Azure.Storage.Queues
Is your feature request related to a problem? Please describe.
I'm working with codebase written against V11 storage SDK, migrating to V12. There's a lot of code that tries to peek or receive just one message from the queue. The APIs available on
QueueClient
make this task kind of cumbersome, i.e. a lot of :(await _queue.ReceiveMessagesAsync(1)).Value.FirstOrDefault();
Can we add APIs like
queue.ReceiveMessageAsync()
?? And similar for Peek ?The text was updated successfully, but these errors were encountered: