public void Handle(ExtratoPontosRemovidosDomainEvent @event) { extratoReadModelService.RemoverPontosExtrato(@event.AggregateId, @event.DateTime, @event.Pontos); commandBus.SendCommand(new AtualizarSaldoExtratoCommand(@event.AggregateId)).Wait(); }
public async Task Handle(ExtratoPontosRemovidosDomainEvent @event) { await extratoReadModelService.RemoverPontosExtrato(@event.AggregateId, @event.DateTime, @event.Pontos); await commandBus.SendCommand(new AtualizarSaldoExtratoCommand(@event.AggregateId)); }