Ejemplo n.º 1
0
        /////////////////////////////////////////////////

        // Parse and index a single feed

        private void IndexSingleFeed(string filename, bool initial_scan)
        {
            if (!filename.EndsWith(".xml"))
            {
                return;
            }
            if (ThisScheduler.ContainsByTag(filename))
            {
                Log.Debug("Not adding task for already running task: {0}", filename);
                return;
            }

            FeedIndexableGenerator generator = new FeedIndexableGenerator(this, filename, initial_scan);

            Scheduler.Task task;
            task     = NewAddTask(generator);
            task.Tag = filename;
            ThisScheduler.Add(task);
        }
Ejemplo n.º 2
0
		/////////////////////////////////////////////////
		
		// Parse and index a single feed

		private void IndexSingleFeed (string filename, bool initial_scan) {
			if (! filename.EndsWith (".xml"))
				return;
			if (ThisScheduler.ContainsByTag (filename)) {
				Log.Debug ("Not adding task for already running task: {0}", filename);
				return;
			}

			FeedIndexableGenerator generator = new FeedIndexableGenerator (this, filename, initial_scan);
			Scheduler.Task task;
			task = NewAddTask (generator);
			task.Tag = filename;
			ThisScheduler.Add (task);
		}