Last active
September 9, 2016 14:41
-
-
Save Kevin-Bronsdijk/a424192082fb1d55434e443f2ae14696 to your computer and use it in GitHub Desktop.
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; | |
public static void Run(string myQueueItem, TraceWriter log) | |
{ | |
log.Info($"C# Queue trigger function processed: {myQueueItem}"); | |
// More custom code | |
} |
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
{ | |
"bindings": [ | |
{ | |
"name": "myQueueItem", | |
"type": "queueTrigger", | |
"direction": "in", | |
"queueName": "test-out", | |
"connection": "your-connection" | |
} | |
], | |
"disabled": false | |
} |
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; | |
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 | |
} |
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
{ | |
"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