Example #1
0
        protected override void QueryChildObjects()
        {
            this.SetClientWorkingLanguageToDefault();

            var childRetrievals = TermDownloader.GetRetrievalsForMinimalProperties();

            this.ClientContext.Load(this.ClientTermSet, termSet => termSet.Terms.Include(childRetrievals));
        }
Example #2
0
        protected override void AssignChildObjects()
        {
            foreach (Term childClientTerm in this.ClientObject.Terms)
            {
                var termDownloader = new TermDownloader(this.DownloaderContext, childClientTerm, this.TreeDepth + 1);
                termDownloader.AssignMinimalProperties();

                LocalTerm childLocalTerm = termDownloader.LocalObject;
                this.LocalObject.AddTerm(childLocalTerm);

                if (this.ShouldRecurse)
                {
                    string indent = "";
                    for (int i = 0; i < this.TreeDepth - 1; ++i)
                    {
                        indent += "    ";
                    }
                    Debug.WriteLine(indent + "--> Fetching children for term: " + childLocalTerm.ToString());

                    termDownloader.FetchItem();
                }
            }
        }
 protected override void QueryMinimalProperties()
 {
     this.SetClientWorkingLanguageToDefault();
     this.ClientContext.Load(this.ClientTerm, TermDownloader.GetRetrievalsForMinimalProperties());
 }