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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 public AppDataTextPostRepository(ISingleFolderPostRetriever postRetriever)
 {
     _postRetriever = postRetriever ?? throw new ArgumentNullException(nameof(postRetriever));
 }