Exemplo n.º 1
0
 public BannerDownloader(IFileCache fileCache, BannerOptions options, IHashUtil hashUtil, IDownloader downloader)
 {
     _fileCache  = fileCache;
     _options    = options;
     _hashUtil   = hashUtil;
     _downloader = downloader;
 }
Exemplo n.º 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());
        }
Exemplo n.º 3
0
 public FileCache(BannerOptions options)
 {
     CacheDirectory    = options.CacheDirectory;
     _maxCacheDuration = options.MaxCacheDuration;
 }