skazantsev / WebDavClient

Asynchronous cross-platform WebDAV client for .NET Core
MIT License
158 stars 30 forks source link

ReadStream not passing the Cancellation Token #88

Closed UnixNetworks closed 7 months ago

UnixNetworks commented 7 months ago

I recommend to pass the Cancellation Token to the ReadStream Method in GetFile

UnixNetworks commented 7 months ago

Forget!

You you have to pass the Cancelation Token to your CopyMethod

            using var fileStream = File.Create(workingFile);
            await res.Stream.CopyToAsync(fileStream, cancellationToken);

;D