Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IRabbitConsumer consumer = new RabbitConsumer();

            // Using first sample
            consumer.Subscribe(Queens.QueenTopic, Consumer_Received_Sample_Body);

            // Using second sample
            //consumer.Subscribe(Queens.QueenTopic, Consumer_Received_Sample_EventHandler);

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 private void WhenSubscribe()
 {
     consumer.Subscribe(this.queue, this.exchange, this.eventProcessor.Object, consumeOptions).GetAwaiter().GetResult();
 }