public virtual async Task <DocumentHeaderResponse> PostAsync(PostDocumentRequest request, CancellationToken cancellationToken = default) { var httpRequest = PostDocumentHttpRequestFactory.Create(request); using (var res = await SendAsync(httpRequest, cancellationToken).ForAwait()) { return(await DocumentHeaderReponseFactory.CreateAsync(res).ForAwait()); } }
protected virtual HttpRequest CreateHttpRequest(PostDocumentRequest request) { return(PostDocumentHttpRequestFactory.Create(request)); }