forked from cloudevents/sdk-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement underscore prefixes for AMQP
The [binding specification](https://github.com/cloudevents/spec/blob/main/cloudevents/bindings/amqp-protocol-binding.md) has changed to prefer `cloudEvents_` over `cloudEvents:`. Previously `cloudEvents_` wouldn't even have been valid. With this change, users can either: - Stick with the default prefix, which doesn't change immediately, but which will change in the first release on or after March 1st 2023 - Explicitly use one or other prefix using the explicitly-named methods Other options considered: - Changing the default now: that's too much of a breaking change. (I don't want to take a major version bump for this, and with enough time for the change, I think that's okay.) - Adding a char or string parameter: that would invite using non-standard prefixes - Adding a Boolean parameter: that would become problematic if we ever end up with a third prefix. (Let's hope we don't, but still...) - Adding an enum and then a parameter for it: feels like overkill Signed-off-by: Jon Skeet <[email protected]>
- Loading branch information
Showing
2 changed files
with
106 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters