WebCache/WebCache.cs
/// <summary>
/// Gets the last modified date of a cached resource. Null if the resource is not cached.
/// </summary>
/// <param name="url">URL.</param>
/// <returns>DateTimeOffset</returns>
Gets the last modified date of a cached resource. Null if the resource is not cached.
Gets the last modified date of a cached resource . Null if the resource is not cached .
public DateTimeOffset? GetDateOfCachedResource(string url)
        {
            var cachePath = GetCachedFilePath(url);
            if (File.Exists(cachePath))
            {
                return new DateTimeOffset(File.GetLastWriteTime(cachePath));
            }
            else
            {
                return null;
            }
        }
public DateTimeOffset ? GetDateOfCachedResource ( string url ) { var cachePath = GetCachedFilePath ( url ) ; if ( File . Exists ( cachePath ) ) { return new DateTimeOffset ( File . GetLastWriteTime ( cachePath ) ) ; } else { return null ; } }
Gets the last modified date of a cached resource.
Gets the last modified date of a cached resource .
None
url
string
None