Beispiel #1
0
 private CacheResult(IRemoteContent content, string fetcherName)
 {
     ContentID   = content.ID;
     ContentPath = content.Path;
     FetcherName = fetcherName;
     RemotePath  = content.RemotePath;
 }
Beispiel #2
0
 public static CacheResult Failure(IRemoteContent content, string fetcherName, string message) => new CacheResult(content, fetcherName)
 {
     IsSuccess = false,
     Message   = message
 };
Beispiel #3
0
 public static CacheResult Failure(IRemoteContent content, string fetcherName, Exception exception) => new CacheResult(content, fetcherName)
 {
     IsSuccess = false,
     Message   = exception.Message,
     Exception = exception
 };
Beispiel #4
0
 public static CacheResult Success(IRemoteContent content, string fetcherName, string cachedPath) => new CacheResult(content, fetcherName)
 {
     IsSuccess  = true,
     CachedPath = cachedPath
 };