Skip to content

Instantly share code, notes, and snippets.

@vainolo
Created 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/728da6e6da972aa21464e221892e9a9e to your computer and use it in GitHub Desktop.
Save vainolo/728da6e6da972aa21464e221892e9a9e to your computer and use it in GitHub Desktop.
Azure Functions – Part 7: Blob, Queue, and Cosmos DB Triggers - 3
using System;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Logging;
namespace Vainolo.AzureFunctionsTutorial.Part7
{
public static class QueueTriggerCSharp
{
[FunctionName("QueueTriggerCSharp")]
public static void Run([QueueTrigger("myqueue", Connection = "MyStorage")]string myQueueItem, ILogger log)
{
log.LogInformation($"C# Queue trigger function processed: {myQueueItem}");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment