[BUG] Microsoft.Azure.ServiceBus is restricted to namespaces with a fully quantified domain.
See original GitHub issueDescribe the bug This is part way between a bug and a feature, so feel free to choose which.
Currently, the Microsoft.Azure.ServiceBus client mandates that the namespace endpoint includes a .
in it. Therefore ensuring that only “real” domains can be used. This precludes using something that is hosted on localhost
. This seems like something that shouldn’t be there as locally contacting servicebus should be ok.
Expected behavior
A servicebus namespace can be specified without a .
e.g. localhost
Actual behavior (include Exception or Stack Trace) An exception is thrown on startup.
To Reproduce
Have a namespace that is localhost
, start the client and you’ll see it fail.
Environment: All environment, there’s nothing specific here.
Notes: The line of code that does this is: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Microsoft.Azure.ServiceBus/src/ServiceBusConnectionStringBuilder.cs#L174
This restriction is not in Azure.Messaging.ServiceBus
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top GitHub Comments
It’s something I’m working on, @shankarsama is aware of the usecase, it’s just not something I want to share publicly yet.
Using
localhost
will be crucial to adoption though, and as it’s not in theAzure.Messaging.ServiceBus
library, this would bring the solution to parity.Hi @martinjt, since you haven’t asked that we “
/unresolve
” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve
” to reopen the issue.