Exemplo n.º 1
0
        public TypeExclusions Add(TypeExclusions additionalExclusions)
        {
            this.Exclude     = additionalExclusions.Exclude;
            this.DoNotFollow = additionalExclusions.DoNotFollow;

            return(this);
        }
Exemplo n.º 2
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null)
            {
                throw new ArgumentNullException("typeExclusions");
            }

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

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

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

            this._getObjectGraph = getObjectGraph;
        }
Exemplo n.º 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;
        }
Exemplo n.º 11
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions, ITypeFieldExclusion typeFieldExclusion)
     : base(BuildGetObjectGraph(typeExclusions, typeFieldExclusion))
 {
 }
Exemplo n.º 12
0
 public DefaultGraphTraversal(TypeExclusions typeExclusions)
     : this(typeExclusions, DefaultTypeFieldExclusion)
 {
 }
Exemplo n.º 13
0
 public DefaultGraphologistComponents(TypeExclusions typeExclusions)
     : base(new DefaultGraphTraversal(typeExclusions), new DefaultGraphVisualization())
 {
 }
Exemplo n.º 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;
        }
Exemplo n.º 15
0
        protected TypeExclusionsClientBase(TypeExclusions typeExclusions)
        {
            if (typeExclusions == null) throw new ArgumentNullException("typeExclusions");

            this._typeExclusions.Add(typeExclusions);
        }
Exemplo n.º 16
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }
Exemplo n.º 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;
        }
Exemplo n.º 18
0
 public Graphologist(TypeExclusions typeExclusions)
     : this(new DefaultGraphologistComponents(typeExclusions))
 {
 }