/// <summary><see cref="GetCacheFile(string,string?)"/></summary> /// <param name="sourceName">The original source of the file.</param> /// <param name="extension">An extension to add onto the result</param> /// <param name="exists">true if the file exists.</param> /// <returns>A path to a file in the cache directory.</returns> public static string GetCacheFile(string sourceName, string?extension, out bool exists) { string path = AppPaths.GetCacheFile(sourceName, extension); exists = File.Exists(path); return(path); }
/// <summary><see cref="GetCacheFile(string,string?)"/></summary> /// <param name="source">The original source of the file.</param> /// <param name="exists">true if the file exists.</param> /// <returns>A path to a file in the cache directory.</returns> public static string GetCacheFile(Uri source, out bool exists) { return(AppPaths.GetCacheFile(source.ToString(), "", out exists)); }