Udostępnij za pośrednictwem


ServiceBusRuleManager Class

Definition

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 {yournamespace}.servicebus.windows.net.

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 ruleName.

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