Beispiel #1
0
        // add an item to mongoQueueDownloadFile
        public static void QueueDownloadFile(string[] filePartLinks, string directory = null, string filename = null, string parameters = null)
        {
            //NamedValues<ZValue> parameters2 = NamedValues.ParseValues(parameters);
            NamedValues <ZValue> parameters2 = ParseParameters(parameters);
            MongoCollectionManager <QueueDownloadFile> mongoQueueDownloadFileManager = DownloadAutomateManagerCreator.CreateMongoQueueDownloadFileManager(GetDownloadAutomateManagerConfig(GetTestValue(parameters2)));

            QueueDownloadFile(mongoQueueDownloadFileManager, filePartLinks, directory, filename);
        }
Beispiel #2
0
        public static void QueueDownloadFiles(string[] fileLinks, string directory = null, string parameters = null)
        {
            //NamedValues<ZValue> parameters2 = NamedValues.ParseValues(parameters);
            NamedValues <ZValue> parameters2 = ParseParameters(parameters);
            MongoCollectionManager <QueueDownloadFile> mongoQueueDownloadFileManager = DownloadAutomateManagerCreator.CreateMongoQueueDownloadFileManager(GetDownloadAutomateManagerConfig(GetTestValue(parameters2)));

            foreach (string fileLink in fileLinks)
            {
                QueueDownloadFile(mongoQueueDownloadFileManager, new string[] { fileLink }, directory: directory);
            }
        }