Table of Contents

Method DownloadFileWithConsoleProgress

Namespace
Alternet.UI
Assembly
Alternet.UI.Interfaces.dll

DownloadFileWithConsoleProgress(string, string, Action<string>?, Action<string>?)

Downloads file from the specified url and outputs progress to console or to callback actions.

public static Task DownloadFileWithConsoleProgress(string docUrl, string filePath, Action<string>? writeLine = null, Action<string>? writeProgress = null)

Parameters

docUrl string
filePath string
writeLine Action<string>

Callback action to use instead of WriteLine(string)

writeProgress Action<string>

Callback action to use for progress outrut instead of WriteLine(string)

Returns

Task