Example #1
0
 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));
        }