public async Task <ServicesResult> PostRabbitMessageAsync(PostMessageRequest request) { var message = new TesteMessage { Campo = request.Campo }; await _publisher.PublishAsync(message); return(Created(message.MessageId)); }
private bool ConsumeTesteMessage(TesteMessage message) { _logger.LogInformation($"ConsumeTesteMessage, Campo = {message.Campo}"); return(true); }