private void Handle(ProcessInstanceStartedEvent evt) { Status = ProcessInstanceStatus.STARTED; NameIdentifier = evt.NameIdentifier; UpdateDateTime = evt.UpdateDateTime; Version = evt.Version; }
public void Start(string nameIdentifier) { var evt = new ProcessInstanceStartedEvent(Guid.NewGuid().ToString(), AggregateId, Version + 1, nameIdentifier, DateTime.UtcNow); Handle(evt); DomainEvents.Add(evt); }