Skip to content

Instantly share code, notes, and snippets.

@vainolo
Last active November 21, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vainolo/a749eb2220628f2ffdf232fd9a734fb6 to your computer and use it in GitHub Desktop.
Save vainolo/a749eb2220628f2ffdf232fd9a734fb6 to your computer and use it in GitHub Desktop.
Azure Functions – Part 7: Blob, Queue, and Cosmos DB Triggers - 2
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