Example #1
0
        public void ReadMessage(RabbitWorkQueues workQueues, IQueueConsumer queueConsumer)
        {
            workQueues.Channel  = CreateChannel();
            workQueues.Consumer = GetConsumer(workQueues.Channel);

            workQueues.Consumer.Received += (model, ea) => {
                var content = Encoding.UTF8.GetString(ea.Body);

                queueConsumer.ProcessMessage(content, ea, (model as IBasicConsumer).Model);
            };
        }