Пример #1
0
 public ConsumerService(
     IEnumerable <IAzureConsumerPool> consumerPools,
     IAzureServiceBusConnection connections,
     ILogger <ConsumerService> logger)
 {
     _consumerPools = consumerPools;
     _connections   = connections;
     _logger        = logger;
 }
Пример #2
0
 public AzureProducerPool(
     IAzureServiceBusConnection connection,
     AzureMessagingServiceBuilder serviceBuilder,
     ILogger <AzureProducerPool> logger)
 {
     _connection = connection;
     _logger     = logger;
     _mappings   = serviceBuilder.ProducerMappings;
     Named       = serviceBuilder.Named;
 }
        public AzureServiceBus(
            IServiceProvider serviceProvider,
            IAzureServiceBusConnection connection,
            IQueueBusSubscriptionsManager manager,
            ILogger <AzureServiceBus> logger)
        {
            _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));

            _connection = connection ?? throw new ArgumentNullException(nameof(connection));

            _manager = manager ?? throw new ArgumentNullException(nameof(manager));

            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }