Пример #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);
        }