public async Task Handle(CommentEditedEvent notification, CancellationToken cancellationToken)
    {
        var comment = await _readModelRepository.GetAsync <CommentDetail>(notification.AggregateId);

        comment.When(notification);

        await _readModelRepository.UpdateAsync(comment);
    }
Example #2
0
 private void When(CommentEditedEvent @event)
 {
     _text = @event.Text;
 }
Example #3
0
 public void When(CommentEditedEvent @event)
 {
     Text = @event.Text;
     LastModificationTime = @event.OccurrenceTime;
 }