Beispiel #1
0
        /// <summary>
        /// Register the attribute.
        /// </summary>
        /// <param name="attrib"></param>
        public virtual void Register(TAttrib attrib)
        {
            var metadata = new ExtensionMetaData
            {
                Id        = attrib.Name,
                Attribute = attrib,
                Instance  = null,
                DataType  = attrib.DeclaringDataType
            };

            Register(attrib.Name, metadata);
        }
Beispiel #2
0
 /// <summary>
 /// Register the id.
 /// </summary>
 /// <param name="extension"></param>
 public virtual void Register(string id, ExtensionMetaData metadata)
 {
     Lookup[id] = metadata;
 }