public ProxyManager(IProxyRepo proxyRepo, IProxyMultiplierRepo proxyMultiplierRepo,
                            ISearchEngineRepo searchEngineRepo, ISearchStringRepo searchStringRepo)
        {
            _proxyRepo           = proxyRepo ?? throw new ArgumentNullException(nameof(proxyRepo));
            _proxyMultiplierRepo = proxyMultiplierRepo ?? throw new ArgumentNullException(nameof(proxyMultiplierRepo));
            _searchEngineRepo    = searchEngineRepo ?? throw new ArgumentNullException(nameof(searchEngineRepo));
            _searchStringRepo    = searchStringRepo ?? throw new ArgumentNullException(nameof(searchStringRepo));

            _proxyStatuses = new Dictionary <Tuple <short, short>, Dictionary <int, ProxyStatus> >();
        }
Exemple #2
0
 public SearchStringSyncTask(IDataStore dataStore, ISearchStringRepo searchStringRepo)
 {
     _dataStore        = dataStore ?? throw new ArgumentNullException(nameof(dataStore));
     _searchStringRepo = searchStringRepo ?? throw new ArgumentNullException(nameof(searchStringRepo));
 }
 public CachedSearchStringRepo(ISearchStringRepo searchStringRepo)
     : base(searchStringRepo)
 {
     _cache = new Dictionary <Tuple <int, int>, SearchString>();
 }
Exemple #4
0
 public SearchStringRepoDecorator(ISearchStringRepo searchStringRepo)
 {
     _searchStringRepo = searchStringRepo ?? throw new ArgumentNullException(nameof(searchStringRepo));
 }
Exemple #5
0
 public SearchUrlPipe(ILocalUULERepo localUULERepo, ISearchStringRepo searchStringRepo)
 {
     _localUULERepo    = localUULERepo ?? throw new ArgumentNullException(nameof(localUULERepo));
     _searchStringRepo = searchStringRepo ?? throw new ArgumentNullException(nameof(searchStringRepo));
 }