public async Task Handle(NoteTagsUpdatedEvent notification, CancellationToken cancellationToken) { var note = await _readModelRepository.GetAsync <NoteDetail>(notification.AggregateId); note.When(notification); await _readModelRepository.UpdateAsync(note); }
public void When(NoteTagsUpdatedEvent @event) { Tags = @event.Tags.ToArray(); }
private void When(NoteTagsUpdatedEvent @event) { _tags = @event.Tags; }