Ejemplo n.º 1
0
        private static void RunPublishSubscribeMessageDemo(IModel model, AmqpMessagingService messagingService)
        {
            Console.WriteLine("Enter your message and press Enter. Quit with 'q'.");
            while (true)
            {
                string message = Console.ReadLine();
                if (message.ToLower() == "q")
                {
                    break;
                }

                messagingService.SendMessageToPublishSubscribeQueues(message, model);
            }
        }