Created
June 12, 2018 20:28
-
-
Save mbellinaso/a8e59ae577ac79391b673778edce7cb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static async Task ModifySubscriptionWithInStockFilter() { | |
var subscriptionClient = new SubscriptionClient( | |
SERVICEBUSCONNSTRING, | |
TOPICNAME, | |
SUBNAME, | |
ReceiveMode.ReceiveAndDelete); | |
await subscriptionClient.AddRuleAsync(new RuleDescription | |
{ | |
Filter = new SqlFilter("IsInStock = true"), | |
Name = "OnlyBackInStock" | |
}); | |
Console.WriteLine("Subscription modified with new filter"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment