Example #1
0
 public AsyncConsumer(ConsumerInfo consumerInfo, Action <RabbitMessage> consume)
 {
     ConsumerInfo = consumerInfo;
     Consume      = consume;
     Init();
 }
Example #2
0
 public SyncConsumer(ConsumerInfo ci)
 {
     Consumer = new AsyncConsumer(ci, msg => Messages.Enqueue(msg));
 }