예제 #1
0
 public VersionAction(ItemVersion version, string key, VersionKeyAction keyAction)
 {
     Op      = keyAction.Op;
     Version = version.Superimpose(new ItemVersion((key, keyAction.Value)));
 }
예제 #2
0
 /// <summary>
 /// Given an action to perform in the version space, transform that action in accordance with the
 /// rules of the space. For a space with no rules (NoRules = true) the action is unchanged.
 /// </summary>
 /// <param name="existingValues">Existing values within version space</param>
 /// <param name="action">Action to perform on version space</param>
 /// <returns>Action transformed into series of actions to conform to version space rules, or null if illegal operation</returns>
 public virtual VersionKeyAction[] ApplyVersionAction(IEnumerable <object> existingValues, VersionKeyAction action)
 {
     return(new VersionKeyAction[] { action });
 }