public static void ReceiveWorkerQueue() { AmqpMessagingService messagingService = new AmqpMessagingService(); IConnection connection = messagingService.GetRabbitMqConnection(); IModel model = connection.CreateModel(); messagingService.ReceiveWorkerQueueMessages(model); }