Skip to content

Instantly share code, notes, and snippets.

@Kevin-Bronsdijk
Last active September 9, 2016 14:41
Show Gist options
  • Save Kevin-Bronsdijk/a424192082fb1d55434e443f2ae14696 to your computer and use it in GitHub Desktop.
Save Kevin-Bronsdijk/a424192082fb1d55434e443f2ae14696 to your computer and use it in GitHub Desktop.
using System;
public static void Run(string myQueueItem, TraceWriter log)
{
log.Info($"C# Queue trigger function processed: {myQueueItem}");
// More custom code
}
{
"bindings": [
{
"name": "myQueueItem",
"type": "queueTrigger",
"direction": "in",
"queueName": "test-out",
"connection": "your-connection"
}
],
"disabled": false
}
using System;
public static void Run(TimerInfo myTimer, out string outputQueueItem, TraceWriter log)
{
log.Info($"C# Timer trigger function executed at: {DateTime.Now}");
// My code
outputQueueItem = "my function data"; // String, Byte array, Object or CloudQueueMessage
}
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 * * * * *"
},
{
"type": "queue",
"name": "outputQueueItem",
"queueName": "test-out",
"connection": "your-connection",
"direction": "out"
}
],
"disabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment