From 0618f36843da43c64773c89e758f71722c006948 Mon Sep 17 00:00:00 2001 From: Daniel Marbach Date: Thu, 9 Mar 2023 21:47:35 +0100 Subject: [PATCH] Improve the rule manager documentation (#34815) --- .../src/RuleManager/ServiceBusRuleManager.cs | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/RuleManager/ServiceBusRuleManager.cs b/sdk/servicebus/Azure.Messaging.ServiceBus/src/RuleManager/ServiceBusRuleManager.cs index 6febe65d67b61..9b7fe58e87f1e 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/RuleManager/ServiceBusRuleManager.cs +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/RuleManager/ServiceBusRuleManager.cs @@ -129,6 +129,42 @@ protected ServiceBusRuleManager() { } /// Multiple filters combine with each other using logical OR condition. i.e., If any filter succeeds, the message is passed on to the subscription. /// /// + /// + /// + /// + /// + /// A rule with the same name exists under the subscription. The will be set to + /// in this case. + /// + /// + /// + /// + /// The operation timed out. The will be set to + /// in this case. + /// + /// + /// + /// + /// Either the specified size of the entity is not supported or the maximum allowable quota has been reached. + /// You must specify one of the supported size values, delete existing entities, or increase your quota size. + /// The failure reason will be set to in this case. + /// + /// + /// + /// + /// The server is busy. You should wait before you retry the operation. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// An internal error or unexpected exception occurs. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// /// A task instance that represents the asynchronous add rule operation. public virtual async Task CreateRuleAsync( string ruleName, @@ -152,6 +188,42 @@ public virtual async Task CreateRuleAsync( /// Multiple filters combine with each other using logical OR condition. i.e., If any filter succeeds, the message is passed on to the subscription. /// /// + /// + /// + /// + /// + /// A rule with the same name exists under the subscription. The will be set to + /// in this case. + /// + /// + /// + /// + /// The operation timed out. The will be set to + /// in this case. + /// + /// + /// + /// + /// Either the specified size of the entity is not supported or the maximum allowable quota has been reached. + /// You must specify one of the supported size values, delete existing entities, or increase your quota size. + /// The failure reason will be set to in this case. + /// + /// + /// + /// + /// The server is busy. You should wait before you retry the operation. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// An internal error or unexpected exception occurs. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// /// A task instance that represents the asynchronous add rule operation. public virtual async Task CreateRuleAsync( CreateRuleOptions options, @@ -191,6 +263,35 @@ await InnerRuleManager.CreateRuleAsync( /// Name of the rule /// An optional instance to signal the request to cancel the operation. /// + /// + /// + /// + /// + /// The specified entity could not be found. The will be set to + /// in this case. + /// + /// + /// + /// + /// The operation timed out. The will be set to + /// in this case. + /// + /// + /// + /// + /// The server is busy. You should wait before you retry the operation. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// An internal error or unexpected exception occurs. The failure reason will be set to + /// in this case. + /// + /// + /// + /// + /// /// A task instance that represents the asynchronous remove rule operation. public virtual async Task DeleteRuleAsync( string ruleName,