Exemplo n.º 1
0
 public InitializeTask(IAppParser appParser, IAppIndexer indexer, 
     RepositoryEmitter repository, ProgramSettings settings)
     : base(settings) {
     this.appParser = appParser;
     this.indexer = indexer;
     this.repository = repository;
 }
Exemplo n.º 2
0
        public RescueTask(IAppParser appParser, IAppIndexer indexer,
            RepositoryEmitter repository, ProgramSettings settings)
            : base(settings) {
            this.appParser = appParser;
            this.indexer = indexer;
            this.repository = repository;

            limit = settings.BatchSize / 200 * 200; // 因为Search API是200一批,找个最接近的200的倍数,以免浪费
        }
Exemplo n.º 3
0
        public UpdateTask(IAppParser appParser, IAppIndexer indexer, IUpdateNotifier notifier,
            IKernel kernel, ProgramSettings settings)
            : base(settings) {
            this.appParser = appParser;
            this.indexer = indexer;
            this.notifier = notifier;
            this.kernel = kernel;

            limit = settings.BatchSize / 200 * 200; // 因为Search API是200一批,找个最接近的200的倍数,以免浪费
        }