Align eventhubs connection property names with Go (#5693)

* Align eventhubs connection property names with Go

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

* Changelog

* Fixed extra value caught by Anton

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
This commit is contained in:
Larry Osterman 2024-06-05 14:56:25 -07:00 committed by GitHub
parent 459c148d06
commit e1265f716d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 8 deletions

View File

@ -8,13 +8,15 @@
### Bugs Fixed
- Fixed eventhub connection properties to better align with the names used by other Azure SDKs.
### Other Changes
## 1.0.0-beta.8 (2024-05-07)
### Features Added
- Added new features for upcoming Event Hubs service release.
- Added support for the EventHubs emulator.
## 1.0.0-beta.7 (2024-04-09)

View File

@ -263,19 +263,19 @@ namespace Azure { namespace Messaging { namespace EventHubs { namespace _detail
public:
template <typename T> static void SetUserAgent(T& options, std::string const& applicationId)
{
constexpr const char* packageName = "cpp-azure-messaging-eventhubs-cpp";
constexpr const char* packageName = "azure-messaging-eventhubs-cpp";
options.Properties.emplace("Product", +packageName);
options.Properties.emplace("Version", PackageVersion::ToString());
options.Properties.emplace("product", packageName);
options.Properties.emplace("version", PackageVersion::ToString());
#if defined(AZ_PLATFORM_WINDOWS)
options.Properties.emplace("Platform", "Windows");
options.Properties.emplace("platform", "Windows");
#elif defined(AZ_PLATFORM_LINUX)
options.Properties.emplace("Platform", "Linux");
options.Properties.emplace("platform", "Linux");
#elif defined(AZ_PLATFORM_MAC)
options.Properties.emplace("Platform", "Mac");
options.Properties.emplace("platform", "Mac");
#endif
options.Properties.emplace(
"User-Agent",
"user-agent",
Azure::Core::Http::_detail::UserAgentGenerator::GenerateUserAgent(
packageName, PackageVersion::ToString(), applicationId));
}