Привет, я использую функцию ServiceBusTrigger
azure, чтобы получать сообщения, полученные в очереди, а затем отправлять их на свой веб-интерфейс, который собирается делать некоторые вещи с этим содержимым
[FunctionName("MyAzureFunction")]
public async void Run(
[ServiceBusTrigger("<MyQueue>", Connection = "<MyConnectionString>")] Message myQueueItem, ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem.ToString()}");
var client = new HttpClient();
// Retrieving the string content from the message
var bodyMessage = Encoding.UTF8.GetString(myQueueItem.Body);
// Calling my API to do something based on the message content
var response = await client.PostAsync("<MyAPIUrl>", new StringContent(bodyMessage, Encoding.UTF8, "application/json"));
// doing something based on the response
}
Я читал о лазурных функциях, и, чтобы они стали дешевле, я читал о надежных функциях, я с нетерпением жду, как их использовать, чтобы я мог принимать решения на основе своего ответа, и я мог заставить его работать с этим ServiceBusTrigger