From a2a83bf5ee44ecef278c34849edb0c362fbe3625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Martin=20Pe=C3=B1a?= Date: Fri, 6 Feb 2026 11:34:10 +0100 Subject: [PATCH 1/2] Add .net standard2.0 --- .../Configuration/ConnectionSettings.cs | 16 ++++++++++------ .../Ev.ServiceBus.Abstractions.csproj | 7 +++++-- src/Ev.ServiceBus.Abstractions/MessageHelper.cs | 2 +- src/Ev.ServiceBus/Ev.ServiceBus.csproj | 9 +++++++-- .../Management/ServiceBusRegistry.cs | 6 +++++- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/src/Ev.ServiceBus.Abstractions/Configuration/ConnectionSettings.cs b/src/Ev.ServiceBus.Abstractions/Configuration/ConnectionSettings.cs index 4dc5a4d..0443fe5 100644 --- a/src/Ev.ServiceBus.Abstractions/Configuration/ConnectionSettings.cs +++ b/src/Ev.ServiceBus.Abstractions/Configuration/ConnectionSettings.cs @@ -56,11 +56,15 @@ public override bool Equals(object? obj) public override int GetHashCode() { - return HashCode.Combine( - Endpoint, - ConnectionString, - Options, - FullyQualifiedNamespace, - Credentials); + unchecked + { + int hash = 17; + hash = hash * 23 + (Endpoint?.GetHashCode() ?? 0); + hash = hash * 23 + (ConnectionString?.GetHashCode() ?? 0); + hash = hash * 23 + (Options?.GetHashCode() ?? 0); + hash = hash * 23 + (FullyQualifiedNamespace?.GetHashCode() ?? 0); + hash = hash * 23 + (Credentials?.GetHashCode() ?? 0); + return hash; + } } } \ No newline at end of file diff --git a/src/Ev.ServiceBus.Abstractions/Ev.ServiceBus.Abstractions.csproj b/src/Ev.ServiceBus.Abstractions/Ev.ServiceBus.Abstractions.csproj index a9f8734..cdf7a91 100644 --- a/src/Ev.ServiceBus.Abstractions/Ev.ServiceBus.Abstractions.csproj +++ b/src/Ev.ServiceBus.Abstractions/Ev.ServiceBus.Abstractions.csproj @@ -1,7 +1,7 @@  - netstandard2.1;net8.0 + netstandard2.1;netstandard2.0;net8.0 true MIT @@ -17,7 +17,10 @@ - + + + + diff --git a/src/Ev.ServiceBus.Abstractions/MessageHelper.cs b/src/Ev.ServiceBus.Abstractions/MessageHelper.cs index e0c9327..72eb1b1 100644 --- a/src/Ev.ServiceBus.Abstractions/MessageHelper.cs +++ b/src/Ev.ServiceBus.Abstractions/MessageHelper.cs @@ -84,7 +84,7 @@ public static ServiceBusMessage SetIsolationApps(this ServiceBusMessage message, { if (isolationApps.Length == 0) return message; - message.ApplicationProperties[UserProperties.IsolationApps] = string.Join(',', isolationApps); + message.ApplicationProperties[UserProperties.IsolationApps] = string.Join(",", isolationApps); return message; } diff --git a/src/Ev.ServiceBus/Ev.ServiceBus.csproj b/src/Ev.ServiceBus/Ev.ServiceBus.csproj index eba7db4..416260e 100644 --- a/src/Ev.ServiceBus/Ev.ServiceBus.csproj +++ b/src/Ev.ServiceBus/Ev.ServiceBus.csproj @@ -1,7 +1,7 @@  - netstandard2.1;net8.0 + netstandard2.1;netstandard2.0;net8.0 true MIT This is a wrapper around Microsoft Azure Service Bus @@ -15,7 +15,12 @@ Its goal to is make it the easiest possible to connect and handle an Azure Servi - + + + + + + diff --git a/src/Ev.ServiceBus/Management/ServiceBusRegistry.cs b/src/Ev.ServiceBus/Management/ServiceBusRegistry.cs index ebfe19a..e9f2dc1 100644 --- a/src/Ev.ServiceBus/Management/ServiceBusRegistry.cs +++ b/src/Ev.ServiceBus/Management/ServiceBusRegistry.cs @@ -52,7 +52,11 @@ public ServiceBusRegistry( public IMessageSender? TryGetMessageSender(ClientType clientType, string resourceId) { - return _messageSenders.GetValueOrDefault(ComputeResourceKey(clientType, resourceId)); + var key = ComputeResourceKey(clientType, resourceId); + + return _messageSenders.TryGetValue(key, out var value) + ? value + : default; } public IMessageSender GetMessageSender(ClientType clientType, string resourceId) From 0a67198293f4ae1c7a8a0ca0248f2dd6c828c45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Martin=20Pe=C3=B1a?= Date: Tue, 10 Feb 2026 11:53:51 +0100 Subject: [PATCH 2/2] add ChangeLog --- docs/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 1bc9fa5..b4c50fc 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.6.0 +- Added + - netstandard2.0 target framework. + ## 5.5.4 - fixed - Fixed an issue where teh async api schema generation was not working properly with Saunter 5.5.3