public QueueConsumersManager(EventQueue queue) { _queue = queue; _consumers = Enumerable.Range(0, _numConsumerTasks).Select(i => new QueueConsumer(_queue)).ToList(); }
public QueueConsumer(EventQueue queue) { _queue = queue; }
public DataProcessor(DataContext dataContext) { _queue = new EventQueue(); _queueProducer = new QueueProducer(_queue, dataContext); _queueConsumers = new QueueConsumersManager(_queue); }