Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] Align ProcessSessionMessageEventArgs.DeadLetterMessageAsync overload parameter types #43498

Closed
kimsey0 opened this issue Apr 18, 2024 · 3 comments
Assignees
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. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus

Comments

@kimsey0
Copy link
Contributor

kimsey0 commented Apr 18, 2024

Library name

Azure.Messaging.ServiceBus

Please describe the feature.

ProcessSessionMessageEventArgs has three methods which take IDictionary<string, object> propertiesToModify parameters: AbandonMessageAsync, DeferMessageAsync, and DeadLetterMessageAsync.

public virtual async Task DeadLetterMessageAsync(
ServiceBusReceivedMessage message,
IDictionary<string, object> propertiesToModify = default,
CancellationToken cancellationToken = default)

However, it also has one DeadLetterMessageAsync overload which takes a Dictionary<string, object>.

public virtual async Task DeadLetterMessageAsync(
ServiceBusReceivedMessage message,
Dictionary<string, object> propertiesToModify,
string deadLetterReason,
string deadLetterErrorDescription = default,
CancellationToken cancellationToken = default)

Can this one be changed to take an IDictionary<string, object>, aligning it with the other three?

@github-actions github-actions bot added 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. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus labels Apr 18, 2024
Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@JoshLove-msft
Copy link
Member

Thank you for bringing this issue to our attention @kimsey0. Unfortunately changing the type from Dictionary to IDictionary would be a binary break. I think we may have to live with this inconsistency.

@JoshLove-msft JoshLove-msft added the issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. label Apr 20, 2024
Copy link

Hi @kimsey0. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

@github-actions github-actions bot removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Apr 20, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus
Projects
None yet
Development

No branches or pull requests

2 participants