Browse Source
Merge pull request #11991 from GerardoGrecoPorini/pass-option-to-servicebusadminclient
Add configuration for ServiceBusAdministrationClient
pull/12009/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AzureServiceBus/Volo/Abp/AzureServiceBus/ConnectionPool.cs
|
|
|
@ -47,7 +47,7 @@ public class ConnectionPool : IConnectionPool, ISingletonDependency |
|
|
|
connectionName, new Lazy<ServiceBusAdministrationClient>(() => |
|
|
|
{ |
|
|
|
var config = _options.Connections.GetOrDefault(connectionName); |
|
|
|
return new ServiceBusAdministrationClient(config.ConnectionString); |
|
|
|
return new ServiceBusAdministrationClient(config.ConnectionString, config.Admin); |
|
|
|
}) |
|
|
|
).Value; |
|
|
|
} |
|
|
|
|