Exemple #1
0
        public async Task <ServicesResult> PostRabbitMessageAsync(PostMessageRequest request)
        {
            var message = new TesteMessage
            {
                Campo = request.Campo
            };


            await _publisher.PublishAsync(message);

            return(Created(message.MessageId));
        }
Exemple #2
0
 private bool ConsumeTesteMessage(TesteMessage message)
 {
     _logger.LogInformation($"ConsumeTesteMessage, Campo = {message.Campo}");
     return(true);
 }