WebCache/WebCache.cs
/// <summary>
/// Gets web document from a URL.
/// </summary>
/// <param name="url">URL.</param>
/// <param name="expiryDate">Expiry date. A resource older than this will be refetched.</param>
/// <returns>Web document</returns>
Gets web document from a URL.
Gets web document from a URL .
public async Task<WebDocument> GetWebPageAsync(string url, DateTimeOffset expiryDate)
        {
            var binary = await GetWebResourceAsync(url);
            var webDocument = new WebDocument(url, binary);
            return webDocument;
        }
public async Task < WebDocument > GetWebPageAsync ( string url , DateTimeOffset expiryDate ) { var binary = await GetWebResourceAsync ( url ) ; var webDocument = new WebDocument ( url , binary ) ; return webDocument ; }
Gets web document from a URL.
Gets web document from a URL .
None
url
string
None
expiryDate
DateTimeOffset
Expiry date. A resource older than this will be refetched.
Expiry date . A resource older than this will be refetched .