I have a http triggered function in .Net5, isolated function.
I am having hard time getting the output binding working for this https function.
The https function retrieves a list of objects. These objects need to be added as separate messages to the queue.
[FunctionName("TestQueueOutput")]
[return: Queue("myqueue-items", Connection = "AzureWebJobsStorage")]
public async Task<HttpResponseData> RunAsync([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req,
FunctionContext context)
{
HttpResponseData okResponse = null;
okResponse = req.CreateResponse(System.Net.HttpStatusCode.OK);
// List of Objects
var _list= await _repo.Get();
await okResponse.WriteAsJsonAsync(_list);
return okResponse;
}
When I run the function, http response can see the list but nothing in the queue defined in Azure.
I further followed the following article for adding output binding to Http trigger.
When I add the Multiresponse class for Isolated process, the output binding for the QueueOutput, the function gives red squiggly lines for it. Can't find the correct nugget package to fix it.
I spent countless hours to get the list items added to the queue as messages.
I am doing it right? Any guidance will be appreciated
Update #1: when I added the MultiResponse class, I can't figure out how to resolve the QueueOutput issue as in the following image:

