Пример #1
0
        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);
            }
        }
Пример #2
0
 protected virtual void SetMonitor(string destination)
 {
     downloadMonitor = new DefaultDownloadMonitor();
 }