Example #1
0
        private void HandleExternalReference(EntityLifeCycleEvent <ExternalReference> domainEvent)
        {
            //Schedule read model update for affected ItSystemUsage if ItSystemUsage was the target of the reference
            var itSystemUsage = domainEvent.Entity.ItSystemUsage;

            if (itSystemUsage != null)
            {
                _pendingReadModelUpdateRepository.Add(PendingReadModelUpdate.Create(itSystemUsage, PendingReadModelUpdateSourceCategory.ItSystemUsage));
            }
        }
        private void HandleExternalReference(EntityLifeCycleEvent <ExternalReference> domainEvent)
        {
            //Schedule read model update for affected dpa if dpa was the target of the reference
            var dpa = domainEvent.Entity.DataProcessingRegistration;

            if (dpa != null)
            {
                _pendingReadModelUpdateRepository.Add(PendingReadModelUpdate.Create(dpa, PendingReadModelUpdateSourceCategory.DataProcessingRegistration));
            }
        }