示例#1
0
 public void When(SpaceUpdatedEvent @event)
 {
     Name                 = @event.Name;
     Visibility           = @event.Visibility;
     BackgroundImage      = @event.BackgroundImage;
     LastModificationTime = @event.OccurrenceTime;
 }
示例#2
0
    public async Task Handle(SpaceUpdatedEvent notification, CancellationToken cancellationToken)
    {
        var space = await _readModelRepository.GetAsync <SpaceDetail>(notification.AggregateId);

        space.When(notification);

        await _readModelRepository.UpdateAsync(space);
    }
示例#3
0
文件: Space.cs 项目: linwenda/Funzone
 private void When(SpaceUpdatedEvent @event)
 {
     _name            = @event.Name;
     _backgroundImage = @event.BackgroundImage;
     _visibility      = @event.Visibility;
 }