File: MyAzureQueueTrigger.cs | Web Access |
Project: src\playground\AzureFunctionsEndToEnd\AzureFunctionsEndToEnd.Functions\AzureFunctionsEndToEnd.Functions.csproj (AzureFunctionsEndToEnd.Functions) |
using Azure.Storage.Queues.Models; using Microsoft.Azure.Functions.Worker; using Microsoft.Extensions.Logging; namespace AzureFunctionsEndToEnd.Functions; public class MyAzureQueueTrigger(ILogger<MyAzureQueueTrigger> logger) { [Function(nameof(MyAzureQueueTrigger))] public void Run([QueueTrigger("queue", Connection = "queue")] QueueMessage message) { logger.LogInformation("C# Queue trigger function processed: {Text}", message.MessageText); } } |