Azure消息队列中的消息直接进入毒药消息队列
[希望这可以节省某个时间。]
下面的代码在搬到新的 queueclient
class(在azure.storage.queque)中,来自defecreated
QueueClient queue = new QueueClient(accountConnectionString, "myQueuename");
queue.Create();
queue.SendMessage(msg);
消息被移至相关的毒药队列队列中,而我在Azure的Application Insinsight中看不到任何错误消息。
当我手动将Azure Storage Explorer中的消息从毒药的消息队列回到队列中时,它起作用了!
[Hoping this might save someone some time.]
The code below stopped working when moving to the newer QueueClient
class (in Azure.Storage.Queues) from the deprecated CloudQueue
class (in Microsoft.Azure.Storage.Queue):
QueueClient queue = new QueueClient(accountConnectionString, "myQueuename");
queue.Create();
queue.SendMessage(msg);
Messages are being moved into the associated poison message queue, and I don't see any error messages in Azure's ApplicationInsights.
When I manually move the message in Azure Storage Explorer from the poison message queue back into the queue, it works!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
< code>CloudQueue 类在之前的 v11 库中默认使用
base64
编码,而QueueClient
不!要设置
base64
编码,请添加QueueClientOptions
:The
CloudQueue
class defaulted to usingbase64
encoding in the prior v11 library, whereasQueueClient
does not!To set
base64
encoding, add aQueueClientOptions
: