Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 13, 2023 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/583da5d5a670dc92952df03fde833d3e to your computer and use it in GitHub Desktop.
Save xximjasonxx/583da5d5a670dc92952df03fde833d3e to your computer and use it in GitHub Desktop.
public class ServiceBusQueueTrigger
{
[FunctionName("ServiceBusQueueTrigger")]
public void Run(
[ServiceBusTrigger(queueName: "%QueueName%", Connection = "ServiceBusConnection")]string myQueueItem,
ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment