Example #1
0
 public IQueueConsumer Using(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     if (consumer == null)
     {
         throw new ArgumentNullException("consumer");
     }
     return(new CurrentThreadQueueMessageBlockConsumer <TMessage>(consumer));
 }
 public IQueueConsumer Using(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     if (consumer == null)
     {
         throw new ArgumentNullException(nameof(consumer));
     }
     return(new QueueMessageBlockConsumer <TMessage>(consumer));
 }
 protected MessageBlockPollQueueConsumer(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     if (consumer == null)
     {
         throw new ArgumentNullException("consumer");
     }
     Consumer = consumer;
 }
Example #4
0
 public static IQueueConsumer Using(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     return(new QueueConsumerBuilder <TMessage>().Using(consumer));
 }
 public QueueMessageBlockConsumer(IQueueMessageBlocksConsumer <TMessage> consumer) : base(consumer)
 {
 }
Example #6
0
 public CurrentThreadQueueMessageBlockConsumer(IQueueMessageBlocksConsumer <TMessage> consumer) : base(consumer)
 {
 }
Example #7
0
 protected MessageBlockPoolQueueConsumer(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     Consumer = consumer ?? throw new ArgumentNullException(nameof(consumer));
 }