示例#1
0
    public async Task Handle(SpaceDeletedEvent notification, CancellationToken cancellationToken)
    {
        var space = await _readModelRepository.GetAsync <SpaceDetail>(notification.AggregateId);

        space.When(notification);

        await _readModelRepository.UpdateAsync(space);
    }
示例#2
0
文件: Space.cs 项目: linwenda/Funzone
 private void When(SpaceDeletedEvent @event)
 {
     _isDeleted = true;
 }
示例#3
0
 public void When(SpaceDeletedEvent @event)
 {
     IsDeleted = true;
 }