This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Kudu.Client.
Summary
Downloads remote file to stream.
- Assembly
- Cake
.Kudu .Client .dll - Namespace
- Cake
.Kudu .Client .Extensions - Containing Type
- Kudu
Client V F S Extensions
Syntax
public static Stream VFSDownloadStream(this IKuduClient client, FilePath remotePath)
Examples
#addin nuget:?package=Cake.Kudu.Client
string baseUri = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
userName = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
password = EnvironmentVariable("KUDU_CLIENT_PASSWORD");
IKuduClient kuduClient = KuduClient(
baseUri,
userName,
password);
FilePath remoteFilePath = "/site/wwwroot/hello.txt";
Stream resultStream = kuduClient.VFSDownloadStream(remoteFilePath);
Information("Result length: {0}", resultStream.Length);
Parameters
Name | Type | Description |
---|---|---|
client | IKuduClient | The Kudu client. |
remotePath | FilePath | The remote source path. |
Return Value
Type | Description |
---|---|
Stream | Content as Stream . |