This commit is contained in:
Sean Feldman 2018-01-23 16:20:11 -07:00
Родитель d1e375f95c
Коммит ecd8d18929
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -40,6 +40,9 @@ namespace TopicSubscriptionWithRuleOperationsSample
correlationFilterSubscriptionClient = new SubscriptionClient(ServiceBusConnectionString, TopicName, correlationFilterSubscriptionName);
// First Subscription is already created with default rule. Leave as is.
Console.WriteLine($"SubscriptionName: {allMessagesSubscriptionName}, Removing and re-adding Default Rule");
await allMessagessubscriptionClient.RemoveRuleAsync(RuleDescription.DefaultRuleName);
await allMessagessubscriptionClient.AddRuleAsync(new RuleDescription(RuleDescription.DefaultRuleName, new TrueFilter()));
// 2nd Subscription: Add SqlFilter on Subscription 2
// Delete Default Rule.