public LastModifiedCachedSingleFolderPostRetriever(ISingleFolderPostRetriever singleFolderPostRetriever, DirectoryInfo folder, ICache cache) { _singleFolderPostRetriever = singleFolderPostRetriever ?? throw new ArgumentNullException(nameof(singleFolderPostRetriever)); _folder = folder ?? throw new ArgumentNullException(nameof(folder)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _cacheKey = "LastModifiedCachedSingleFolderPostRetriever-" + folder.FullName; }
public CachedSingleFolderPostRetriever(ISingleFolderPostRetriever singleFolderPostRetriever, string folderName, ICache cache) { if (string.IsNullOrWhiteSpace(folderName)) { throw new ArgumentException("Null/blank/whitespace-only folderName specified"); } _singleFolderPostRetriever = singleFolderPostRetriever ?? throw new ArgumentNullException(nameof(singleFolderPostRetriever)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _cacheKey = "CachedSingleFolderPostRetriever-" + folderName; }
public AppDataTextPostRepository(ISingleFolderPostRetriever postRetriever) { _postRetriever = postRetriever ?? throw new ArgumentNullException(nameof(postRetriever)); }