Skip to content

[FEATURE REQ][Storage] Ability to receive ONE message from Queue #14211

@kasobol-msft

Description

@kasobol-msft

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 ?

Metadata

Metadata

Assignees

Labels

ClientThis issue is related to a non-management packageService AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions