private static JObject ExcludeAttributes(SCIMRepresentation representation, IEnumerable <SCIMAttributeExpression> attributes, string location = null, bool isComplex = false) { var clone = representation.Clone() as SCIMRepresentation; clone.FilterAttributes(new SCIMAttributeExpression[0], attributes); clone.AddStandardAttributes(location, attributes.Select(_ => _.GetFullPath()), false, false); return(clone.ToResponse(location, false, false)); }
public static SCIMRepresentationBuilder Load(SCIMRepresentation scimRepresentation, ICollection <SCIMSchema> schemas) { return(new SCIMRepresentationBuilder((SCIMRepresentation)scimRepresentation.Clone(), schemas)); }