public virtual void RetrieveSource(IPackageTree packageTree, string path, bool initialise) { lock (locker) { if (initialise) { Initialise(packageTree); } downloadMonitor = new DefaultDownloadMonitor(); var fullPath = Path.Combine(packageTree.WorkingDirectory.FullName, path); FileSystemInfo exportPath = GetExportPath(fullPath); Thread monitoringThread = StartMonitoring(); Download(packageTree, exportPath, GetOperation.Export); StopMonitoring(monitoringThread); } }
protected virtual void SetMonitor(string destination) { downloadMonitor = new DefaultDownloadMonitor(); }