public static async Task <Document> TryGetDocumentAsync(this IChangeFeedDocumentClient client, Uri documentUri)
        {
            try
            {
                IResourceResponse <Document> response = await client.ReadDocumentAsync(documentUri).ConfigureAwait(false);

                return(response.Resource);
            }
            catch (DocumentClientException ex)
            {
                if (ex.StatusCode != HttpStatusCode.NotFound)
                {
                    throw;
                }
            }

            return(null);
        }
 public async Task <IResourceResponse <Document> > ReadDocumentAsync(Uri documentUri)
 {
     return(await _inner.ReadDocumentAsync(documentUri));
 }