public static CacheFetcher CreateStandalone(string sas, string stream, DirectoryInfo folder) { var fetcher = new CacheFetcher(sas, stream, folder, new MemoryStreamFactoryManager()); fetcher.Init(); return(fetcher); }
public CacheManager(IDictionary <string, string> nameAndSas, DirectoryInfo cacheFolder, IMemoryStreamManager manager) { _cacheFolder = cacheFolder; _manager = manager; _fetchers = nameAndSas .Select(p => { var fetcher = new CacheFetcher(p.Value, p.Key, _cacheFolder, _manager); fetcher.Init(); return(fetcher); }) .ToArray(); }