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