Skip to content

Commit 3a7d27e

Browse files
authored
Use name of function instead of class for input/output example (#3212)
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 (doc snippet), as function name. Renaming the function to something more explicit, and using that as function name, should improve the example.
1 parent 6891db2 commit 3a7d27e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/Extensions/Queue/QueueFunction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public QueueFunction(ILogger<QueueFunction> logger)
2020

2121
//<docsnippet_queue_output_binding>
2222
//<docsnippet_queue_trigger>
23-
[Function(nameof(QueueFunction))]
23+
[Function(nameof(QueueInputOutputFunction))]
2424
[QueueOutput("output-queue")]
25-
public string[] Run([QueueTrigger("input-queue")] Album myQueueItem, FunctionContext context)
25+
public string[] QueueInputOutputFunction([QueueTrigger("input-queue")] Album myQueueItem, FunctionContext context)
2626
//</docsnippet_queue_trigger>
2727
{
2828
// Use a string array to return more than one message.

0 commit comments

Comments
 (0)