Exemple #1
0
        public AzureServiceBusConsumer(string topicName, string subscriptionName, IAmAMessageProducer messageProducer, IManagementClientWrapper managementClientWrapper,
                                       IMessageReceiverProvider messageReceiverProvider, int batchSize = 10, ReceiveMode receiveMode = ReceiveMode.ReceiveAndDelete, OnMissingChannel makeChannels = OnMissingChannel.Create)
        {
            _subscriptionName        = subscriptionName;
            _topicName               = topicName;
            _messageProducer         = messageProducer;
            _managementClientWrapper = managementClientWrapper;
            _messageReceiverProvider = messageReceiverProvider;
            _batchSize               = batchSize;
            _makeChannel             = makeChannels;
            _receiveMode             = receiveMode;

            GetMessageReceiverProvider();
        }
Exemple #2
0
 public AzureServiceBusConsumer(string topicName, string subscriptionName, IAmAMessageProducer messageProducer, IManagementClientWrapper managementClientWrapper, IMessageReceiverProvider messageReceiverProvider, int batchSize = 10)
 {
     _subscriptionName        = subscriptionName;
     _topicName               = topicName;
     _messageProducer         = messageProducer;
     _managementClientWrapper = managementClientWrapper;
     _batchSize               = batchSize;
     _messageReceiver         = messageReceiverProvider.Get(_topicName, subscriptionName, ReceiveMode.PeekLock);
 }