Exemplo n.º 1
0
 public static void SendObject(IModel model, AmqpMessagingService messagingService)
 {
     Console.WriteLine("Enter customer name. Quit with 'q'.");
     while (true)
     {
         string customerName = Console.ReadLine();
         if (customerName.ToLower() == "q")
         {
             break;
         }
         messagingService.SendObjectToQueue(customerName, model);
     }
 }