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); }