Esempio n. 1
0
        static void Main(string[] args)
        {
            var rmqMessageConsumer = new RmqMessageConsumer(HOSTNAME, QUEUE_NAME);

            rmqMessageConsumer.MessageReceived += (message) => Console.WriteLine($"Message received: {message}");
            rmqMessageConsumer.StartMessageConsumer();

            Console.WriteLine("Press [enter] to exit");
            Console.ReadLine();

            rmqMessageConsumer.StopMessageConsumer();
        }