public Type CreateAndAddPageTypeClassToAppDomain(Action <TypeSpecification> typeSpecificationExpression) { Type type = PageTypeClassFactory.CreatePageTypeClass(typeSpecificationExpression); AssemblyLocator.Add(type.Assembly); return(type); }
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); }
public void AddTypeInheritingFromTypedPageData(Action <TypeSpecification> typeSpecificationExpression) { Type type = PageTypeClassFactory.CreateTypeInheritingFromTypedPageData(typeSpecificationExpression); AssemblyLocator.Add(type.Assembly); }