protected void fullExport_Click(object sender, EventArgs e) { Stopwatch sw = Stopwatch.StartNew(); ContentExporter cw = new ContentExporter(); int contentCount = cw.ExportSite(false); MediaExporter me = new MediaExporter(); int mediaCount = me.Export(); sw.Stop(); lblStatus.Text = String.Format("Exported {0} content nodes and {1} media items [{2} seconds]", contentCount, mediaCount, sw.Elapsed.TotalSeconds); }
public int ExportMedia() { MediaExporter me = new MediaExporter(); return me.Export(); }