Пример #1
0
        public virtual async Task <DocumentHeaderResponse> DeleteAsync(DeleteAttachmentRequest request, CancellationToken cancellationToken = default)
        {
            var httpRequest = DeleteAttachmentHttpRequestFactory.Create(request);

            using (var res = await SendAsync(httpRequest, cancellationToken).ForAwait())
            {
                return(await DocumentHeaderResponseFactory.CreateAsync(res).ForAwait());
            }
        }
Пример #2
0
        public virtual async Task <DocumentHeaderResponse> PutAsync(PutAttachmentRequest request)
        {
            var httpRequest = PutAttachmentHttpRequestFactory.Create(request);

            using (var res = await SendAsync(httpRequest).ForAwait())
            {
                return(await DocumentHeaderResponseFactory.CreateAsync(res).ForAwait());
            }
        }