C
C#2y ago
Szeraax

Azure Functions output binding to HTTP request (trigger) and storage queue? [Answered]

Here is what I'm looking at. https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-output?tabs=isolated-process%2Cextensionv5&pivots=programming-language-csharp But I already am returning data for the HTTP response. Can I return data for each binding separately? Do I need to use 2 entirely separate functions and call the queue function that returns inside the HTTP function? Or what?
Azure Queue storage output binding for Azure Functions
Learn to create Azure Queue storage messages in Azure Functions.
4 Replies
Szeraax
Szeraax2y ago
Here's the existing HTTP trigger and output:
[Function("HTTPFunction")]
public HttpResponseData
Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
{
// _logger.LogInformation("C# HTTP trigger function processed a request.");
var response = req.CreateResponse();
// ...
return response
}
[Function("HTTPFunction")]
public HttpResponseData
Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestData req)
{
// _logger.LogInformation("C# HTTP trigger function processed a request.");
var response = req.CreateResponse();
// ...
return response
}
I wish that I could use the azure portal to look at integrations and add this, but it seems that this is one of the scenarios where they don't allow that. :/
Szeraax
Szeraax2y ago
GitHub
.NET Worker bindings · Azure/azure-functions-dotnet-worker Wiki
Azure Functions out-of-process .NET language worker - .NET Worker bindings · Azure/azure-functions-dotnet-worker Wiki
Szeraax
Szeraax2y ago
GitHub
azure-functions-dotnet-worker/HttpTriggerWithMultipleOutputBindings...
Azure Functions out-of-process .NET language worker - azure-functions-dotnet-worker/HttpTriggerWithMultipleOutputBindings.cs at main · Azure/azure-functions-dotnet-worker
Accord
Accord2y ago
✅ This post has been marked as answered!