Skip to content

Commit

Permalink
Use the FullyQualifiedNamespace instead of the connection string when…
Browse files Browse the repository at this point in the history
… the token credential is set (#703)
  • Loading branch information
danielmarbach authored Nov 28, 2022
1 parent 09fc083 commit edab0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transport/AzureServiceBusTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override async Task<TransportInfrastructure> Initialize(HostSettings host
? new ServiceBusClient(FullyQualifiedNamespace, TokenCredential, defaultClientOptions)
: new ServiceBusClient(ConnectionString, defaultClientOptions);

var administrativeClient = TokenCredential != null ? new ServiceBusAdministrationClient(ConnectionString, TokenCredential) : new ServiceBusAdministrationClient(ConnectionString);
var administrativeClient = TokenCredential != null ? new ServiceBusAdministrationClient(FullyQualifiedNamespace, TokenCredential) : new ServiceBusAdministrationClient(ConnectionString);

var namespacePermissions = new NamespacePermissions(administrativeClient);

Expand Down

0 comments on commit edab0f8

Please sign in to comment.