ServiceBusRuleManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The ServiceBusRuleManager allows rules for a subscription to be managed. The rule manager requires only Listen claims, whereas the ServiceBusAdministrationClient requires Manage claims.
public class ServiceBusRuleManager : IAsyncDisposable
type ServiceBusRuleManager = class
interface IAsyncDisposable
Public Class ServiceBusRuleManager
Implements IAsyncDisposable
- Inheritance
-
ServiceBusRuleManager
- Implements
Constructors
ServiceBusRuleManager() |
Initializes a new instance of the ServiceBusRuleManager class for mocking. |
Properties
FullyQualifiedNamespace |
The fully qualified Service Bus namespace that the rule manager is associated with. This is likely
to be similar to |
IsClosed |
Indicates whether or not this ServiceBusRuleManager has been closed. |
SubscriptionPath |
The path of the Service Bus subscription that the rule manager is connected to, specific to the Service Bus namespace that contains it. |
Methods
CloseAsync(CancellationToken) |
Performs the task needed to clean up resources used by the ServiceBusRuleManager. |
CreateRuleAsync(CreateRuleOptions, CancellationToken) |
Adds a rule to the current subscription to filter the messages reaching from topic to the subscription. |
CreateRuleAsync(String, RuleFilter, CancellationToken) |
Adds a rule to the current subscription to filter the messages reaching from topic to the subscription. |
DeleteRuleAsync(String, CancellationToken) |
Removes the rule on the subscription identified by |
DisposeAsync() |
Performs the task needed to clean up resources used by the ServiceBusRuleManager. This is equivalent to calling CloseAsync(CancellationToken). |
GetRulesAsync(CancellationToken) |
Iterates over the rules associated with the subscription. |
Applies to
Azure SDK for .NET