protected virtual HttpRequest CreateHttpRequest(DocumentExistsRequest request) { return DocumentExistsHttpRequestFactory.Create(request); }
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); } } }