public Stream Download(INode node, CancellationToken?cancellationToken = null)
        {
            var progress = new Progress <double>();

            return(UnwrapException(() => _client.DownloadAsync(node, progress, cancellationToken).Result));
        }
Exemplo n.º 2
0
            public async Task FillPipeAsync(PipeWriter writer, CancellationToken cancellationToken)
            {
                using var stream = await client.DownloadAsync(uri, doodad, cancellationToken).ConfigureAwait(false);

                await handler.FillPipeAsync(stream, writer, cancellationToken).ConfigureAwait(false);
            }