コード例 #1
0
    public async Task Handle(NoteTagsUpdatedEvent notification, CancellationToken cancellationToken)
    {
        var note = await _readModelRepository.GetAsync <NoteDetail>(notification.AggregateId);

        note.When(notification);

        await _readModelRepository.UpdateAsync(note);
    }
コード例 #2
0
 public void When(NoteTagsUpdatedEvent @event)
 {
     Tags = @event.Tags.ToArray();
 }
コード例 #3
0
 private void When(NoteTagsUpdatedEvent @event)
 {
     _tags = @event.Tags;
 }