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