I am using a QueueTrigger with the following signature:
public static void Run([QueueTrigger("tester")]string myQueueItem,[Blob("local/{queueTrigger}")]ICloudBlob myBlob,TraceWriter log)
The binding in function.json being generated is:
"bindings": [
{
"type": "queueTrigger",
"queueName": "tester",
"connection": "AzureWebJobsStorage",
"name": "myQueueItem"
}
],
This doesn't work because it won't bind the appropriate blob as an in binding. If I manually edit the function.json it binds properly as it should:
"bindings": [
{
"type": "queueTrigger",
"queueName": "tester",
"connection": "AzureWebJobsStorage",
"name": "myQueueItem"
},
{
"name": "myBlob",
"type": "blob",
"path": "local/{queueTrigger}",
"direction": "in",
"connection": "AzureWebJobsStorage"
}],
My question is how can I indicate that input binding in the C# code so the function.json gets generated appropriately? I know for output bindings you can decorate it with the out parameter, but what for the in? Is this a bug or am I missing something?
Microsoft.NET.Sdk.Functionsare you using? you can find that in your csproj