예제 #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;
 }
예제 #4
0
 public static IQueueConsumer Using(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     return(new QueueConsumerBuilder <TMessage>().Using(consumer));
 }
 public QueueMessageBlockConsumer(IQueueMessageBlocksConsumer <TMessage> consumer) : base(consumer)
 {
 }
예제 #6
0
 public CurrentThreadQueueMessageBlockConsumer(IQueueMessageBlocksConsumer <TMessage> consumer) : base(consumer)
 {
 }
예제 #7
0
 protected MessageBlockPoolQueueConsumer(IQueueMessageBlocksConsumer <TMessage> consumer)
 {
     Consumer = consumer ?? throw new ArgumentNullException(nameof(consumer));
 }