private void When(ProjectBindingAdded @event) { ProjectBindings.Add(@event.ProjectBinding); }
/// <inheritdoc /> public async Task Handle(ProjectBindingAdded @event, CancellationToken cancellationToken) { var readModel = mapper.Map <ProjectBindingReadModel>(@event.ProjectBinding); await Update(@event, distribution => distribution.ProjectBindings.Add(readModel), cancellationToken); }