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