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