示例#1
0
        public Type CreateAndAddPageTypeClassToAppDomain(Action <TypeSpecification> typeSpecificationExpression)
        {
            Type type = PageTypeClassFactory.CreatePageTypeClass(typeSpecificationExpression);

            AssemblyLocator.Add(type.Assembly);

            return(type);
        }
示例#2
0
        public void CreateAndAddPageTypeClassToAppDomain(Action <TypeSpecification, PageTypeAttribute> typeSpecificationExpression)
        {
            var  attribute     = new PageTypeAttribute();
            Type pageTypeClass = PageTypeClassFactory.CreateTypeInheritingFromTypedPageData(type =>
            {
                typeSpecificationExpression(type, attribute);
                type.AddAttributeTemplate(attribute);
            });

            AssemblyLocator.Add(pageTypeClass.Assembly);
        }
示例#3
0
        public void AddTypeInheritingFromTypedPageData(Action <TypeSpecification> typeSpecificationExpression)
        {
            Type type = PageTypeClassFactory.CreateTypeInheritingFromTypedPageData(typeSpecificationExpression);

            AssemblyLocator.Add(type.Assembly);
        }