Exemplo n.º 1
0
 public void When(SpaceUpdatedEvent @event)
 {
     Name                 = @event.Name;
     Visibility           = @event.Visibility;
     BackgroundImage      = @event.BackgroundImage;
     LastModificationTime = @event.OccurrenceTime;
 }
Exemplo n.º 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);
    }
Exemplo n.º 3
0
 private void When(SpaceUpdatedEvent @event)
 {
     _name            = @event.Name;
     _backgroundImage = @event.BackgroundImage;
     _visibility      = @event.Visibility;
 }