protected WebDownloader(String baseDirectory = null, Int32 minDelay = 1000, Int32 maxDelay = 3000) { _cacheDirectory = Path.Combine(baseDirectory ?? Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "_cache"); EnsureDirectoryExists(_cacheDirectory); _minDelay = minDelay; _maxDelay = maxDelay; _webClient = new WebClientEx(); }