I have function that receive ServiceBusTrigger message:
public static void ProcessQueueMessage([ServiceBusTrigger("mysb")] string message)
// do something with message
This SO question seems to answer your question.
You'll use this code:
With this kind of code in your app.config file:
<configuration> <appSettings> <add key="QueueName" value="mysb"/> </appSettings> </configuration>