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