protected void fullImport_Click(object sender, EventArgs e) { Stopwatch sw = Stopwatch.StartNew(); ContentImporter ci = new ContentImporter(); int contentCount = ci.ImportDiskContent(); MediaImporter mi = new MediaImporter(); int mediaCount = mi.ImportMedia(); // we map ids at the end.. ci.MapContentIds(); sw.Stop(); lblStatus.Text = String.Format("Imported {0} content items and {1} media files [{2} seconds]", contentCount, mediaCount, sw.Elapsed.TotalSeconds); }
public void MapContent() { ContentImporter ci = new ContentImporter(); ci.MapContentIds(); }