//client pulls message off queue. message no longer available. public static void WorkerQueue() { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.SetUpQueueForWorkerQueueDemo(model); RunWorkerQueueMessageDemo(model, messagingService); }
static void Main(string[] args) { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.SetUpQueueForWorkerQueueDemo(model); RunWorkerQueueMessageDemo(model, messagingService); Console.ReadKey(); }