Example #1
0
 public ConnectionPool(IOptions <AbpAzureServiceBusOptions> options)
 {
     _options      = options.Value;
     _clients      = new ConcurrentDictionary <string, Lazy <ServiceBusClient> >();
     _adminClients = new ConcurrentDictionary <string, Lazy <ServiceBusAdministrationClient> >();
     Logger        = new NullLogger <ConnectionPool>();
 }
Example #2
0
 public ProcessorPool(
     IOptions <AbpAzureServiceBusOptions> options,
     IConnectionPool connectionPool)
 {
     _options        = options.Value;
     _connectionPool = connectionPool;
     _processors     = new ConcurrentDictionary <string, Lazy <ServiceBusProcessor> >();
     Logger          = new NullLogger <ProcessorPool>();
 }