简体   繁体   English

Azure服务总线队列子目录过滤器更改

[英]Azure service bus queue subcription filter change

We are planning to use azure service bus queue along with topic/subscription. 我们计划使用azure服务总线队列以及主题/订阅。

We have multiple subscriptions for a given topic with different filter conditions. 对于具有不同过滤条件的给定主题,我们有多个订阅。

My question is can we change the filter of subscription dynamically once subscription is created? 我的问题是,我们可以在创建订阅后动态更改订阅过滤器吗? How can I change the filter condition for subscription once it is created? 如何在创建订阅后更改过滤条件? I cannot find any methods which allows this? 我找不到任何允许这种方法? The only option I see is delete subscription and recreate it. 我看到的唯一选择是删除订阅并重新创建它。 Any idea how to change filter without deleting subscription? 知道如何更改过滤器而不删除订阅吗?

You can use AddRule and RemoveRule on SubscriptionClient to modify the filters in a subscription. 您可以在SubscriptionClient上使用AddRuleRemoveRule来修改订阅中的过滤器。

Resources: 资源:

I cant be sure it works but if anything will allow you to edit a filter it will be the Service Bus explorer from Paolo http://code.msdn.microsoft.com/windowsazure/Service-Bus-Explorer-f2abca5a 我不能确定它是否有效但如果有任何东西允许你编辑过滤器它将是Paolo的Service Bus资源管理器http://code.msdn.microsoft.com/windowsazure/Service-Bus-Explorer-f2abca5a

More details in this blog post on it: http://windowsazurecat.com/2011/07/exploring-topics-and-queues-by-building-a-service-bus-explorer-toolpart-1/ 有关此博客文章的更多详细信息: http//windowsazurecat.com/2011/07/exploring-topics-and-queues-by-building-a-service-bus-explorer-toolpart-1/

Can you create a new one and delete the old one, it is pub/sub after all? 你能创建一个新的并删除旧的,它毕竟是pub / sub吗?

HTH HTH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM