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