protected override void AssignChildObjects() // abstract { foreach (TermGroup clientTermGroup in this.ClientObject.Groups.ToList()) { if (clientTermGroup.IsSiteCollectionGroup || clientTermGroup.IsSystemGroup) { continue; } if (!this.Options.MatchesGroupIdFilter(clientTermGroup.Id)) { continue; } var stopwatch = new Stopwatch(); stopwatch.Start(); // Copy the clientTermGroup into a new LocalTermGroup var termGroupDownloader = new TermGroupDownloader(this.DownloaderContext, clientTermGroup, this.TreeDepth + 1); termGroupDownloader.AssignMinimalProperties(); LocalTermGroup termGroup = termGroupDownloader.LocalObject; // Add the LocalTermGroup to the LocalTermStore this.LocalObject.AddTermGroup(termGroup); if (this.ShouldRecurse) { Debug.WriteLine("==> Fetching children for Group: " + termGroup.Name); // Fetch the rest of the tree termGroupDownloader.FetchItem(); } Debug.WriteLine("TOTAL TIME FOR Group" + termGroup.Name + ": " + stopwatch.ElapsedMilliseconds + " ms"); } }
public TermGroupUploader(LocalTermGroup localTermGroup, UploadController controller) : base(controller) { this.localTermGroup = localTermGroup; }