Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }