コード例 #1
0
 internal async Task DownloadToFileAsync(string url, string destinationPath, bool overwrite)
 {
     using var response = await RetryRequest(() => _httpClient.GetResponseAsync(url));
     await WriteToFileAsync(await response.Stream, destinationPath, overwrite);
 }