public async Task <IActionResult> ProcessPayment() { //Domain process var paymentId = Guid.NewGuid(); await _bus.Publish <PaymentCreated>(PaymentFactory.Created(paymentId, "José", "*****@*****.**", 100)); _logger.LogInformation($"Payment id: {paymentId} created message published!"); return(Ok()); }