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