示例#1
0
        public static InterfaceEntity BuildInterfaceEntity(Type t)
        {
            InterfaceEntity entity = new InterfaceEntity();

            entity.ComponentAttribute = AssemblyHelper.GetCustomAttributes <XCIComponentDescriptionAttribute>(t);
            entity.InterfaceType      = t;
            entity.Provider           = AssemblyHelper.GetTypeFullName(t);
            entity.ClassEntityList    = new XCIList <ClassEntity>();
            return(entity);
        }
示例#2
0
        private static void InitInterface(Assembly assembly)
        {
            Type         managerType = typeof(IManager);
            IList <Type> types       = AssemblyHelper.GetInterfaceType(assembly, managerType);

            foreach (Type t in types)
            {
                InterfaceEntity entity = BuildInterfaceEntity(t);
                ComponentList.AddOrUpdate(entity);
            }
        }