public IEnumerable <WeatherForecast> Get() { const string queueName = "Queue Test"; var x = Activity.Current; var objToSend = new Dictionary <string, string> { { "msg", "Ricardo Test" } }; var message = new RabbitMqMessage(objToSend, queueName); _publisher.PublishMessage(message); _publisher.PublishBatchMessages(new List <RabbitMqMessage>() { new(objToSend, queueName), new(objToSend, queueName) });