public void Apply(ChangedProductTypeEvent e) { ProductType = e.ProductType; }
public async Task HandleAsync(ChangedProductTypeEvent @event, CancellationToken cancellationToken = default) { await _repo.UpdateAsync(@event.AggregateId, x => x.ProductType = @event.ProductType, cancellationToken); }