Skip to content

Conversation

@DigitalMushrooms
Copy link
Contributor

@DigitalMushrooms DigitalMushrooms commented Oct 12, 2025

This change improves code quality and maintainability by replacing a custom connection string parser with the official Azure SDK implementation ServiceBusConnectionStringProperties.Parse().

Why? The Azure SDK parser is thoroughly tested by Microsoft and handles all edge cases, encoding issues, and future connection string format changes automatically. No need to maintain custom parsing logic. Updates to connection string format will be handled by SDK updates.

Unit test now uses proper fake connection string.

I also moved the class to the Ev.ServiceBus.Abstractions.Configuration namespace.

UPDATE:
I don't think we need to use the absolute URI (sb://<URL>/) to connect to Microsoft Entra ID. We only need the fully qualified name (FQN).
Source: Authenticate a managed identity with Microsoft Entra ID to access Azure Service Bus resources

@benspeth benspeth merged commit 064bd8b into EcovadisCode:master Nov 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants