public FilteringGetTypeFields(IGetTypeFields getTypeFields, ITypeFieldExclusion typeFieldExclusion) { if (getTypeFields == null) { throw new ArgumentNullException("getTypeFields"); } if (typeFieldExclusion == null) { throw new ArgumentNullException("typeFieldExclusion"); } this._getTypeFields = getTypeFields; this._typeFieldExclusion = typeFieldExclusion; }
public static IGetObjectGraph BuildGetObjectGraph(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion) { LazyGetObjectGraph getObjectGraph = new LazyGetObjectGraph(); IGetSubGraph getSubGraph = new CompositeGetSubGraph(new List <IGetSubGraph>() { new EnumerableGetSubGraph(getObjectGraph, typeExclusions), new DefaultGetSubGraph(getObjectGraph, new DefaultGetObjectFields( new FilteringGetTypeFields( new DefaultGetTypeFields(), typeFieldExclusion)), typeExclusions) }); getObjectGraph.GetObjectGraph = new DefaultGetObjectGraph(getSubGraph, typeExclusions); return(getObjectGraph); }
public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion) : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion)) { }
public DefaultGraphTraversal(ITypeFieldExclusion typeFieldExclusion) : this(DefaultTypeExclusions, typeFieldExclusion) { }
public FilteringGetTypeFields(IGetTypeFields getTypeFields, ITypeFieldExclusion typeFieldExclusion) { if (getTypeFields == null) throw new ArgumentNullException("getTypeFields"); if (typeFieldExclusion == null) throw new ArgumentNullException("typeFieldExclusion"); this._getTypeFields = getTypeFields; this._typeFieldExclusion = typeFieldExclusion; }
public static IGetObjectGraph BuildGetObjectGraph(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion) { LazyGetObjectGraph getObjectGraph = new LazyGetObjectGraph(); IGetSubGraph getSubGraph = new CompositeGetSubGraph(new List<IGetSubGraph>() { new EnumerableGetSubGraph(getObjectGraph, typeExclusions), new DefaultGetSubGraph(getObjectGraph, new DefaultGetObjectFields( new FilteringGetTypeFields( new DefaultGetTypeFields(), typeFieldExclusion)), typeExclusions) }); getObjectGraph.GetObjectGraph = new DefaultGetObjectGraph(getSubGraph, typeExclusions); return getObjectGraph; }