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.SendMessageToPublishSubscribeQueue(message, model); } }