public InitializeTask(IAppParser appParser, IAppIndexer indexer, RepositoryEmitter repository, ProgramSettings settings) : base(settings) { this.appParser = appParser; this.indexer = indexer; this.repository = repository; }
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的倍数,以免浪费 }
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的倍数,以免浪费 }