public void Mutate(MutationEvent mutation) { mutation.BaseVersion = GetVersion(); ApplyMutation(mutation); if (Guid.Empty.Equals(mutation.Id)) { repo.PushEvent(Resource, mutation); } }
public void Mutate(MutationEvent mutation) { mutation.BaseVersion = Version; ApplyMutation(mutation); if (Guid.Empty.Equals(mutation.Id)) { repo.PushEvent(Resource, mutation); OnMutationEventPushed?.Invoke(mutation); } }