Open paul1956 opened 3 months ago
@KlausLoeffelmann to investigate for .NET 10
@KlausLoeffelmann they are all implemented as Friend and 100% tested in my Download PR though you probably want to make some changes in API to support a cancellation token.
@JeremyKuhne any chance of API review
Background and motivation
In order to update Microsoft.VisualBasic.Devices.Network to use HttpClient a set of DownloadFileAsyc needed to be create but they are now Friend Shared. It would be useful if the Async versions were available to developers, and they are already written and tested.
API Proposal
It is possible to match all the current Microsoft.VisualBasic.Devices.Network.DownloadFile API but the set below is also reasonable. It is also possible to have many few using optional parameters. Some below are currently commented out as unnecessary for replacement of WebClient.
API Usage
Alternative Designs
Just a few Async API's with many optional parameters or exactly copy DownloadFile API's and make them all Async
Risks
There is already 100% test coverage in FixIssue#9807 PR so risk is minimal.
Will this feature affect UI controls?
No