public static byte[] GetLatestContent(this WebPage webPage) { WebPageUpdate update = GetLatestUpdate(webPage); if (update == null || update.Content == null || update.Content.Length == 0) { return(null); } return(update.Content); }
public static async Task <byte[]> GetLatestContentAsync(this WebPage webPage) { WebPageUpdate update = await GetLatestUpdateAsync(webPage); if (update == null || update.Content == null || update.Content.Length == 0) { return(null); } return(update.Content); }