我有一个启用了分区的 Azure 服务总线主题。我可以在该主题下以编程方式创建订阅,但是当我尝试添加自定义规则时,出现以下异常:
"The operation is not supported for an entity with partitioning enabled."
我的代码只是使用 SubscriptionClient 的 AddRule 方法和 RuleDefinition。顺便说一句,如果主题未分区,我没有任何问题。
最佳答案
好的,我解决了这个问题。基本上,当主题分区时,您无法为订阅创建规则。
关于Azure服务总线: Can't add rules to a subscription under Topics with partitioning enabled?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27584817/