Azure / azure-service-bus-dotnet

☁️ .NET Standard client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
Other
235 stars 120 forks source link

Question: what name requirements are defined a connectionstring, queue-name, topic-name and subscription-name? #651

Closed StefH closed 5 years ago

StefH commented 5 years ago

Question

The ConnectionString, queue-name, topic-name and subscription-name are following a validation pattern. Which regex is used to validate these?

I want to apply a regular expression attribute on my Options class which defines the fields for ConnectionString, queue-name, topic-name and subscription-name.

SeanFeldman commented 5 years ago

I would advise against your own validation and let the broker do it for you. But if you insist, entity rules.

SeanFeldman commented 5 years ago

Same with the connection string. Let ServiceBusConnectionStringBuilder do the work.