public async Task HandleAsync(InvestorCreatedEvent @event) { await _projectionWriter.AddAsync(new InvestorProjection(@event.AggregateId, @event.UserId, @event.FirstName, @event.LastName)); }
public async Task HandleAsync(WalletCreatedEvent @event) { await _projectionWriter.AddAsync(new WalletProjection( @event.AggregateId, @event.InvestorId, @event.Currency, @event.Amount)); }
public async Task HandleAsync(BuyOrderCreatedEvent @event) { await _projectionWriter.AddAsync(new BuyOrderProjection(@event.AggregateId, @event.WalletId, @event.CompanyId, @event.Quantity, OrderState.Started)); }
public async Task HandleAsync(CompanyCreatedEvent @event) { var projection = new CompanyProjection(@event.AggregateId, @event.Name); await _projectionWriter.AddAsync(projection); }