static void Download(BlobFolder folder, string inputname, string outputname) { using (var input = folder.OpenRead(inputname)) { using (var output = File.OpenWrite(outputname)) { input.CopyTo(output); } } }
public override PipeOutput Run(PipeInput input) { string blobName = input.GetString(); using (var stream = _folder.OpenRead(blobName)) using (var reader = new StreamReader(stream)) { string content = reader.ReadToEnd(); content = CustomDou.AddName(content, blobName); return(PipeOutput.ConvertBase64(content)); } }