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); }
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); } }