Last active
November 21, 2018 13:46
-
-
Save vainolo/a749eb2220628f2ffdf232fd9a734fb6 to your computer and use it in GitHub Desktop.
Azure Functions – Part 7: Blob, Queue, and Cosmos DB Triggers - 2
This file contains hidden or 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
using System.IO; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
using Microsoft.Extensions.Logging; | |
namespace Vainolo.AzureFunctionsTutorial.Part7 | |
{ | |
public static class BlobTriggerCSharp | |
{ | |
[FunctionName("BlobTriggerCSharp")] | |
public static void Run([BlobTrigger("myblobs/{name}", Connection = "MyStorage")]Stream myBlob, string name, ILogger log) | |
{ | |
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment