public AggregateIndexer(IFallbackStrategyProvider fallbackStrategyProvider, IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService, WebClient client, Logger logger, IProtectionService ps) : base(id: "all", name: "AggregateSearch", description: "This feed includes all configured trackers", configService: configService, client: client, logger: logger, p: ps, configData: new ConfigurationData(), fallbackStrategyProvider: fallbackStrategyProvider, resultFilterProvider: resultFilterProvider, filter: x => true) { }
public FilterIndexer(string filter, IFallbackStrategyProvider fallbackStrategyProvider, IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService, WebClient client, Logger logger, IProtectionService ps, ICacheService cs, Func <IIndexer, bool> filterFunc) : base(id: filter, name: filter, description: "This feed includes all configured trackers filter by " + filter, configService: configService, client: client, logger: logger, ps: ps, cs: cs, configData: new ConfigurationData(), fallbackStrategyProvider: fallbackStrategyProvider, resultFilterProvider: resultFilterProvider, filter: filterFunc ) { }
protected BaseMetaIndexer(string name, string id, string description, IFallbackStrategyProvider fallbackStrategyProvider, IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService, WebClient client, Logger logger, ConfigurationData configData, IProtectionService p, Func <IIndexer, bool> filter) : base(id: id, name: name, description: description, link: "http://127.0.0.1/", caps: null, configService: configService, client: client, logger: logger, p: p, configData: configData) { filterFunc = filter; this.fallbackStrategyProvider = fallbackStrategyProvider; this.resultFilterProvider = resultFilterProvider; }
public void InitAggregateIndexer() { var omdbApiKey = serverConfig.OmdbApiKey; IFallbackStrategyProvider fallbackStrategyProvider = null; IResultFilterProvider resultFilterProvider = null; if (!omdbApiKey.IsNullOrEmptyOrWhitespace()) { var imdbResolver = new OmdbResolver(webClient, omdbApiKey.ToNonNull()); fallbackStrategyProvider = new ImdbFallbackStrategyProvider(imdbResolver); resultFilterProvider = new ImdbTitleResultFilterProvider(imdbResolver); } else { fallbackStrategyProvider = new NoFallbackStrategyProvider(); resultFilterProvider = new NoResultFilterProvider(); } logger.Info("Adding aggregate indexer"); aggregateIndexer = new AggregateIndexer(fallbackStrategyProvider, resultFilterProvider, configService, webClient, logger, protectionService); aggregateIndexer.Indexers = indexers.Values; }
public AggregateIndexer(IFallbackStrategyProvider fallbackStrategyProvider, IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps) : base("AggregateSearch", "This feed includes all configured trackers", fallbackStrategyProvider, resultFilterProvider, configService, wc, l, new ConfigurationData(), ps, x => true) { }
protected BaseMetaIndexer(string name, string description, IFallbackStrategyProvider fallbackStrategyProvider, IResultFilterProvider resultFilterProvider, IIndexerConfigurationService configService, IWebClient webClient, Logger logger, ConfigurationData configData, IProtectionService p, Func <IIndexer, bool> filter) : base(name, "http://127.0.0.1/", description, configService, webClient, logger, configData, p, null, null) { filterFunc = filter; this.fallbackStrategyProvider = fallbackStrategyProvider; this.resultFilterProvider = resultFilterProvider; }