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); }
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()); }
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); }
public override List <Type> FinderAll() { return(LoadTypes.Where(x => !x.IsAbstract && !x.IsInterface && typeof(IEntityTypeRegiest).IsAssignableFrom(x)) .ToList()); }
protected override Type[] FindType() { var entityList = LoadTypes.Where(x => typeof(EntityBase).IsAssignableFrom(x) && !x.IsAbstract && !x.IsInterface && typeof(EntityBase) != x); return(entityList.ToArray()); }
public override Type[] Find() { var types = LoadTypes.Where(x => typeof(DbContext).IsAssignableFrom(x) && !x.IsAbstract && !x.IsInterface); return(types.ToArray()); }
public override Type[] Find() { var types = LoadTypes.Where(x => !x.IsAbstract && x.IsClass && typeof(PackBase).IsAssignableFrom(x)).ToArray(); return(types); }
public override Type[] Find() { var types = LoadTypes.Where(x => !x.IsInterface && !x.IsAbstract && typeof(IEntityTypeRegiest).IsAssignableFrom(x)).ToArray(); return(types); }
public override List <Type> FinderAll() { return(LoadTypes.Where(x => !x.IsInterface && typeof(EventData) != x && !x.IsAbstract).ToList()); }