Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/351.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么azure service bus订阅会报告活动消息,而onmessage不会检索任何内容_C#_Azure_Azureservicebus_Azure Servicebus Queues - Fatal编程技术网

C# 为什么azure service bus订阅会报告活动消息,而onmessage不会检索任何内容

C# 为什么azure service bus订阅会报告活动消息,而onmessage不会检索任何内容,c#,azure,azureservicebus,azure-servicebus-queues,C#,Azure,Azureservicebus,Azure Servicebus Queues,我有一个azure服务总线主题/订阅。当我查询订阅时,我被告知有11646条活动消息 但是,消息循环(使用subscription.onMessage实现)不会检索任何内容 如果我提交了一条消息,计数将增加1,我从循环中收到它,当我完成消息时,计数将减少1 在跳转到“死信”之前,死信队列中没有任何内容。能否检查队列中的消息是否没有现有锁?这可能是ACL问题。使用服务总线资源管理器时,我们也遇到同样的问题。如何检查此问题?代理消息对象具有LockedUntilUtc属性,您可以检查该属性以查看消息

我有一个azure服务总线主题/订阅。当我查询订阅时,我被告知有11646条活动消息

但是,消息循环(使用subscription.onMessage实现)不会检索任何内容

如果我提交了一条消息,计数将增加1,我从循环中收到它,当我完成消息时,计数将减少1


在跳转到“死信”之前,死信队列中没有任何内容。

能否检查队列中的消息是否没有现有锁?

这可能是ACL问题。使用服务总线资源管理器时,我们也遇到同样的问题。

如何检查此问题?代理消息对象具有LockedUntilUtc属性,您可以检查该属性以查看消息上是否有锁。我建议下载Service bus explorer以帮助查看队列中消息的所有属性Service bus explorer告诉我有11646条消息,但当我单击“消息”时,不会显示任何消息。