public AttributeCanonicalizationRule(
     PropertyDescriptor propertyDescriptor,
     IScimTypeAttributeDefinition definition,
     AttributeCanonicalizationAction <TAttribute> canonicalizationRule)
 {
     _PropertyDescriptor   = propertyDescriptor;
     _Definition           = definition;
     _CanonicalizationRule = (TAttribute value, IScimTypeAttributeDefinition attributeDefinition) =>
     {
         canonicalizationRule.Invoke(value, attributeDefinition);
         return(value);
     };
 }
Beispiel #2
0
 public ScimTypeAttributeDefinitionBuilder <T, TAttribute> AddCanonicalizationRule(AttributeCanonicalizationAction <TAttribute> rule)
 {
     _CanonicalizationRules.Add(new AttributeCanonicalizationRule <TAttribute>(_PropertyDescriptor, this, rule));
     return(this);
 }