예제 #1
0
        public override List <Type> FinderAll()
        {
            var typeList = LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && !x.IsDefined(typeof(IgnoreDependencyAttbuite)) &&
                                           DependencyType.Any(m => m.IsAssignableFrom(x))).ToList();
            //查找类型:
            var attbuitList = LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && x.IsDefined(typeof(DependencyAttbuite))).ToList();

            typeList.AddRange(attbuitList);
            return(typeList);
        }
예제 #2
0
        public override Type[] Find()
        {
            //var b = LoadTypes.ToList();
            //查找类型:当前类型不是抽象类,不是接口,没有忽略注入特性。且当前类型是实现了 三种生命周期
            var typeList = LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && !x.IsDefined(typeof(IgnoreDependency)) && DependencyType.Any(m => m.IsAssignableFrom(x))).ToList();
            //查找类型:
            var attbuitList = LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && x.IsDefined(typeof(AttbuiteDependency))).ToList();

            typeList.AddRange(attbuitList);
            return(typeList.Distinct().ToArray());
        }
예제 #3
0
        public override List <Type> FinderAll()
        {
            var types = LoadTypes.Where(m => !m.IsAbstract && !m.IsInterface && !m.IsSealed && (typeof(NotifyHandler).IsAssignableFrom(m) || (typeof(IRequestExecute).IsAssignableFrom(m)))).ToList();

            return(types);
        }
예제 #4
0
 public override List <Type> FinderAll()
 {
     return(LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && typeof(IEntityTypeRegiest).IsAssignableFrom(x))
            .ToList());
 }
예제 #5
0
        protected override Type[] FindType()
        {
            var entityList = LoadTypes.Where(x => typeof(EntityBase).IsAssignableFrom(x) && !x.IsAbstract && !x.IsInterface && typeof(EntityBase) != x);

            return(entityList.ToArray());
        }
예제 #6
0
        public override Type[] Find()
        {
            var types = LoadTypes.Where(x => typeof(DbContext).IsAssignableFrom(x) && !x.IsAbstract && !x.IsInterface);

            return(types.ToArray());
        }
예제 #7
0
        public override Type[] Find()
        {
            var types = LoadTypes.Where(x => !x.IsAbstract && x.IsClass && typeof(PackBase).IsAssignableFrom(x)).ToArray();

            return(types);
        }
예제 #8
0
        public override Type[] Find()
        {
            var types = LoadTypes.Where(x => !x.IsInterface && !x.IsAbstract && typeof(IEntityTypeRegiest).IsAssignableFrom(x)).ToArray();

            return(types);
        }
예제 #9
0
 public override List <Type> FinderAll()
 {
     return(LoadTypes.Where(x => !x.IsInterface && typeof(EventData) != x && !x.IsAbstract).ToList());
 }