Ejemplo n.º 1
0
 public async Task HandleAsync(InvestorCreatedEvent @event)
 {
     await _projectionWriter.AddAsync(new InvestorProjection(@event.AggregateId, @event.UserId, @event.FirstName,
                                                             @event.LastName));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 4
0
 public async Task HandleAsync(CompanyCreatedEvent @event)
 {
     var projection = new CompanyProjection(@event.AggregateId, @event.Name);
     await _projectionWriter.AddAsync(projection);
 }