Created
November 21, 2018 13:46
-
-
Save vainolo/728da6e6da972aa21464e221892e9a9e to your computer and use it in GitHub Desktop.
Azure Functions – Part 7: Blob, Queue, and Cosmos DB Triggers - 3
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; | |
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