Ejemplo n.º 1
0
 public void Apply(ChangedProductPriceEvent e)
 {
     Price = e.Price;
 }
 public async Task HandleAsync(ChangedProductPriceEvent @event, CancellationToken cancellationToken = default)
 {
     await _repo.UpdateAsync(@event.AggregateId, x => x.Price = @event.Price, cancellationToken);
 }