public static void SetReferences(this ProjectDOM.Node parent, string jointCfg, string propertyName, params ProjectDOM.Node[] children) { var ids = children .Select(item => item.Identifier) .ToArray(); var props = parent.GetPropertiesForConfiguration(jointCfg.Split('.')); props.SetReferenceIds("Value1", ids); }
public static IEnumerable <ProjectDOM.Node> GetReferences(this ProjectDOM.Pipeline pipeline, ProjectDOM.Node parent, string jointCfg, string propertyName) { var ids = parent.GetReferenceIds(jointCfg, propertyName); return(ids.Select(item => pipeline.GetNode(item))); }
public static IEnumerable <Guid> GetReferenceIds(this ProjectDOM.Node parent, string jointCfg, string propertyName) { var props = parent.GetPropertiesForConfiguration(jointCfg.Split('.')); return(props.GetReferenceIds(propertyName)); }