Ejemplo n.º 1
0
        public void UpdateEventDetails(IDomainEvent e, IAggregate aggregate, EntityBase source)
        {
            versionProperty.SetValue(e, aggregate.GetVersion());
            aggregateIdentityProperty.SetValue(e, aggregate.Identity.GetId());

            if (entityIdentityProperty != null)
            {
                entityIdentityProperty.SetValue(e, source.Identity.GetId());
            }
        }
Ejemplo n.º 2
0
 internal void SetAggregateDetails(IAggregate aggregate)
 {
     Version     = aggregate.GetVersion();
     AggregateId = aggregate.Identity;
 }
 internal void SetAggregateDetails(IAggregate aggregate)
 {
     Version = aggregate.GetVersion();
     AggregateId = aggregate.Identity;
 }