From 2d5379b9ead72454273d19a798c5beec4631928b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85gren?= Date: Wed, 22 Oct 2025 10:18:00 +0200 Subject: [PATCH] Use name of function instead of class for input/output example The example function with input/output is used standalone on https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger . When copying this the code does not compile because it uses the class name, which is not included in the example, as function name. Renaming the function to something more explicit, and using that as function name, should improve the example. --- samples/Extensions/Queue/QueueFunction.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Extensions/Queue/QueueFunction.cs b/samples/Extensions/Queue/QueueFunction.cs index cfa26b8b7..5248ce724 100644 --- a/samples/Extensions/Queue/QueueFunction.cs +++ b/samples/Extensions/Queue/QueueFunction.cs @@ -20,9 +20,9 @@ public QueueFunction(ILogger logger) // // - [Function(nameof(QueueFunction))] + [Function(nameof(QueueInputOutputFunction))] [QueueOutput("output-queue")] - public string[] Run([QueueTrigger("input-queue")] Album myQueueItem, FunctionContext context) + public string[] QueueInputOutputFunction([QueueTrigger("input-queue")] Album myQueueItem, FunctionContext context) // { // Use a string array to return more than one message.