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