コード例 #1
0
        public void Handle(ExtratoPontosRemovidosDomainEvent @event)
        {
            extratoReadModelService.RemoverPontosExtrato(@event.AggregateId, @event.DateTime, @event.Pontos);

            commandBus.SendCommand(new AtualizarSaldoExtratoCommand(@event.AggregateId)).Wait();
        }
コード例 #2
0
        public async Task Handle(ExtratoPontosRemovidosDomainEvent @event)
        {
            await extratoReadModelService.RemoverPontosExtrato(@event.AggregateId, @event.DateTime, @event.Pontos);

            await commandBus.SendCommand(new AtualizarSaldoExtratoCommand(@event.AggregateId));
        }