public async Task Handle(PedidoPagamentoRealizadoEvent message, CancellationToken cancellationToken) { await _mediatorHandler.EnviarComando(new FinalizarPedidoCommand(message.PedidoId, message.ClienteId)); }
public async Task Handle(PedidoPagamentoRealizadoEvent notification, CancellationToken cancellationToken) { await _mediatrHandler.EnviarComando(new FinalizarPedidoCommand(notification.PedidoId, notification.ClienteId)); }