Esempio n. 1
0
        public void Poll(CommitNotificationEvent @event)
        {
            var eventStream = _eventStore.Load(@event.AggregateId, @event.LoadedRevision);

            foreach (var commit in eventStream.Commits)
            {
                var domainEvents = _serializeManager.DeserializeEvents(commit.Payload);
                foreach (var domainEvent in domainEvents)
                {
                    _eventPublisher.Publish(domainEvent);
                }
            }
        }