Exemple #1
0
        public void Update(string name, string description)
        {
            var evt = new ProcessFileUpdatedEvent(Guid.NewGuid().ToString(), AggregateId, Version, name, description, DateTime.UtcNow);

            Handle(evt);
            DomainEvents.Add(evt);
        }
Exemple #2
0
 private void Handle(ProcessFileUpdatedEvent evt)
 {
     Name           = evt.Name;
     Description    = evt.Description;
     UpdateDateTime = evt.UpdateDateTime;
     Version        = evt.Version;
 }