IWebAdapter.

DownloadFile(Uri, FilePath, Action<int>) Method

Summary

Downloads a resource to a file.
Assembly
Cake.Gradle.dll
Namespace
Cake.Gradle.Abstractions
Containing Type
IWebAdapter

Syntax

Task DownloadFile(Uri uri, FilePath filePath, Action<int> percentCompleteHandler)

Parameters

Name Type Description
uri Uri The resource to download.
filePath FilePath Path to store the file.
percentCompleteHandler Action<int> Handler to be called when download progress changed.

Return Value

Type Description
Task Nothing.