예제 #1
0
 public BannerDownloader(IFileCache fileCache, BannerOptions options, IHashUtil hashUtil, IDownloader downloader)
 {
     _fileCache  = fileCache;
     _options    = options;
     _hashUtil   = hashUtil;
     _downloader = downloader;
 }
예제 #2
0
        public OnlineBannerManager(BannerOptions options, IDirectory directory, IProcessStarter processStarter, IVersionHelper versionHelper, ILanguageProvider languageProvider, IHashUtil hashUtil, IUsageStatisticsSender usageStatisticsSender, IBannerMetricFactory bannerMetricFactory)
        {
            var cache = new FileCache(options);

            _versionHelper    = versionHelper;
            _languageProvider = languageProvider;
            _bannerLoader     = new BannerLoader(directory, cache, processStarter, usageStatisticsSender, bannerMetricFactory);
            _bannerDownloader = new BannerDownloader(cache, options, hashUtil, new WebClientDownloader());
        }
예제 #3
0
 public FileCache(BannerOptions options)
 {
     CacheDirectory    = options.CacheDirectory;
     _maxCacheDuration = options.MaxCacheDuration;
 }