Beispiel #1
0
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude     = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return(this);
        }
Beispiel #2
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null)
            {
                throw new ArgumentNullException("typeExclusions");
            }

            this._typeExclusions.Add(typeExclusions);
        }
Beispiel #3
0
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null)
            {
                throw new ArgumentNullException("getObjectGraph");
            }

            this._getObjectGraph = getObjectGraph;
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
Beispiel #6
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
Beispiel #7
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
Beispiel #8
0
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return this;
        }
Beispiel #9
0
        public EnumerableGetSubGraph(IGetObjectGraph getObjectGraph, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null) throw new ArgumentNullException("getObjectGraph");

            this._getObjectGraph = getObjectGraph;
        }
Beispiel #10
0
        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;
        }
Beispiel #11
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
Beispiel #12
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
Beispiel #13
0
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
Beispiel #14
0
        public DefaultGetSubGraph(IGetObjectGraph getObjectGraph, IGetObjectFields getObjectFields, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null) throw new ArgumentNullException("getObjectGraph");
            if (getObjectFields == null) throw new ArgumentNullException("getObjectFields");

            this._getObjectGraph = getObjectGraph;
            this._getObjectFields = getObjectFields;
        }
Beispiel #15
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null) throw new ArgumentNullException("typeExclusions");

            this._typeExclusions.Add(typeExclusions);
        }
Beispiel #16
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }
Beispiel #17
0
        public DefaultGetSubGraph(IGetObjectGraph getObjectGraph, IGetObjectFields getObjectFields, TypeExclusions typeExclusions)
            : base(typeExclusions)
        {
            if (getObjectGraph == null)
            {
                throw new ArgumentNullException("getObjectGraph");
            }
            if (getObjectFields == null)
            {
                throw new ArgumentNullException("getObjectFields");
            }

            this._getObjectGraph  = getObjectGraph;
            this._getObjectFields = getObjectFields;
        }
Beispiel #18
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }