@@ -103,7 +103,7 @@ It's equivalent to: `sys.ReplyTo = '
[email protected] ' AND sys.Label = 'Import
103
103
Here's a .NET C# example that creates the following Service Bus entities:
104
104
105
105
- Service Bus topic named ` topicfiltersampletopic `
106
- - Subscription to the topic named ` AllOrders ` with a SQL filter expression ` 1=1 `
106
+ - Subscription to the topic named ` AllOrders ` with a True Rule filter, which is equivalent to a SQL rule filter with expression ` 1=1 ` .
107
107
- Subscription named ` ColorBlueSize10Orders ` with a SQL filter expression ` color='blue' AND quantity=10 `
108
108
- Subscription named ` ColorRed ` with a SQL filter expression ` color='red' ` and an action
109
109
- Subscription named ` HighPriorityRedOrders ` with a correlation filter expression ` Subject = "red", CorrelationId = "high" `
@@ -145,11 +145,13 @@ namespace CreateTopicsAndSubscriptionsWithFilters
145
145
Console .WriteLine ($" Creating the topic {topicName }" );
146
146
await adminClient .CreateTopicAsync (topicName );
147
147
148
- Console .WriteLine ($" Creating the subscription {subscriptionAllOrders } for the topic with a SQL filter " );
149
- // Create a SQL filter with an expression that always evaluates to true
148
+ Console .WriteLine ($" Creating the subscription {subscriptionAllOrders } for the topic with a True filter " );
149
+ // Create a True Rule filter with an expression that always evaluates to true
150
+ // It's equivalent to using SQL rule filter with 1=1 as the expression
150
151
await adminClient .CreateSubscriptionAsync (
151
152
new CreateSubscriptionOptions (topicName , subscriptionAllOrders ),
152
- new CreateRuleOptions (" AllOrders" ,new SqlRuleFilter (" 1=1" )));
153
+ new CreateRuleOptions (" AllOrders" , new TrueRuleFilter ()));
154
+
153
155
154
156
Console .WriteLine ($" Creating the subscription {subscriptionColorBlueSize10Orders } with a SQL filter" );
155
157
// Create a SQL filter with color set to blue and quantity to 10
0 commit comments