Beispiel #1
0
 public void Apply(ChangedProductColorEvent e)
 {
     Color = e.Color;
 }
 public async Task HandleAsync(ChangedProductColorEvent @event, CancellationToken cancellationToken = default)
 {
     await _repo.UpdateAsync(@event.AggregateId, x => x.Color = @event.Color, cancellationToken);
 }