这就是我的 azure 函数代码的样子..
[FunctionName("Function1")]
public static void Run([ServiceBusTrigger("myqueue/$DeadLetterQueue", Connection = "ServiceBusConnection")]Message myQueueItem, ILogger log, int deliveryCount,
string messageId,
string deadLetterSource,
System.Collections.Generic.IDictionary<string, object> UserProperties
)
{}
我能够获取死信消息,但不知何故无法从服务总线队列接收常规消息,
这是预期的行为吗?
如果是这样,我如何在同一函数中接收常规/死信消息。
我正在使用函数 2.0 运行时。
最佳答案
Azure Function 不支持从多个源接收。 队列及其死信队列被视为两个不同的队列。 您将需要有两个具有某些共享逻辑的函数。
关于azure - 配置为从死信队列接收消息时未获取常规服务总线消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58973625/