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