/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter <BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, params string[] queues) : this(connectionFactory, messagePropertiesConverter, activeObjectCounter, acknowledgeMode, transactional, prefetchCount, true, queues) { }
/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="defaultRequeueRejected">The default requeue rejected.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter <BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, bool defaultRequeueRejected, params string[] queues) { this.connectionFactory = connectionFactory; this.messagePropertiesConverter = messagePropertiesConverter; this.activeObjectCounter = activeObjectCounter; this.acknowledgeMode = acknowledgeMode; this.transactional = transactional; this.prefetchCount = prefetchCount; this.defaultRequeueRejected = defaultRequeueRejected; this.queues = queues; }
/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, params string[] queues) : this(connectionFactory, messagePropertiesConverter, activeObjectCounter, acknowledgeMode, transactional, prefetchCount, true, queues) { }
/// <summary>Initializes a new instance of the <see cref="BlockingQueueConsumer"/> class. Create a consumer. The consumer must not attempt to use the connection factory or communicate with the broker until it is started.</summary> /// <param name="connectionFactory">The connection factory.</param> /// <param name="messagePropertiesConverter">The message properties converter.</param> /// <param name="activeObjectCounter">The active object counter.</param> /// <param name="acknowledgeMode">The acknowledge mode.</param> /// <param name="transactional">if set to <c>true</c> [transactional].</param> /// <param name="prefetchCount">The prefetch count.</param> /// <param name="defaultRequeueRejected">The default requeue rejected.</param> /// <param name="queues">The queues.</param> public BlockingQueueConsumer( IConnectionFactory connectionFactory, IMessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeModeUtils.AcknowledgeMode acknowledgeMode, bool transactional, int prefetchCount, bool defaultRequeueRejected, params string[] queues) { this.connectionFactory = connectionFactory; this.messagePropertiesConverter = messagePropertiesConverter; this.activeObjectCounter = activeObjectCounter; this.acknowledgeMode = acknowledgeMode; this.transactional = transactional; this.prefetchCount = prefetchCount; this.defaultRequeueRejected = defaultRequeueRejected; this.queues = queues; }