Пример #1
0
 protected virtual HttpRequest CreateHttpRequest(DocumentExistsRequest request)
 {
     return DocumentExistsHttpRequestFactory.Create(request);
 }
Пример #2
0
        public virtual async Task<DocumentHeaderResponse> ExistsAsync(DocumentExistsRequest request)
        {
            Ensure.That(request, "request").IsNotNull();

            using (var httpRequest = CreateHttpRequest(request))
            {
                using (var res = await SendAsync(httpRequest).ForAwait())
                {
                    return ProcessDocumentHeaderResponse(res);
                }
            }
        }