Rebel.Framework.Persistence.DefaultAttributeTypeRegistry.RegisterAttributeType C# (CSharp) Method

RegisterAttributeType() public method

Registers or updates an AttributeType in the registry
public RegisterAttributeType ( Func attributeType ) : void
attributeType Func the AttributeType.
return void
        public void RegisterAttributeType(Func<AttributeType> attributeType)
        {  

            //get the alias, this requires a call to the method
            var at = attributeType();

            _attributeTypeCache.AddOrUpdate(at.Alias,
                                            attributeType,
                                            (k, a) => attributeType);
        }