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