Last active
May 21, 2016 14:14
-
-
Save shahriarhossain/069d5acb52e32fa2bad5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void ProcessText([BlobTrigger(@"input-dir/{name}.txt")] TextReader content, | |
string name, | |
[Blob(@"output-dir/{name}")] TextWriter contentOutput) | |
{ | |
Console.WriteLine(String.Format("Reading Content from : {0}", name)); | |
var temp = String.Format("Contents : {0}", content.ReadToEnd()); | |
contentOutput.WriteLine(temp); | |
} | |
public static void CopyBlobToBlob([BlobTrigger(@"input-dir/{name}.jpeg")] Stream content, | |
string name, | |
[Blob(@"output-dir/{name}")] Stream contentOutput) | |
{ | |
Console.WriteLine(String.Format("Copying File : {0}", name)); | |
content.CopyTo(contentOutput); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment