1

For starters, I'm using Visual Studio, not the Azure Functions portal. I found documentation that covers creating a queue output binding using the portal but can't find a way to apply this to plain old C# code.

I have a trigger wired up and functioning as-designed. Now, I want to add a message (string) to queue storage. How do I add the queue output binding and wire it up to the correct queue using C# in Visual Studio 2017.3?

1 Answer 1

1

Similar to what you did in the scripts, but decorate it with Queue attribute, for instance

[return: Queue("MyQueue")]
public static string Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer)

or

public static string Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer, 
    [Queue("MyQueue")] out MyMessage message)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.