ServiceBusRuleManager クラス

定義

では ServiceBusRuleManager 、サブスクリプションのルールを管理できます。 ルール マネージャーではリッスン要求のみが必要ですが、 には要求の管理が ServiceBusAdministrationClient 必要です。

public class ServiceBusRuleManager : IAsyncDisposable
type ServiceBusRuleManager = class
    interface IAsyncDisposable
Public Class ServiceBusRuleManager
Implements IAsyncDisposable
継承
ServiceBusRuleManager
実装

コンストラクター

ServiceBusRuleManager()

モック作成のために クラスの ServiceBusRuleManager 新しいインスタンスを初期化します。

プロパティ

FullyQualifiedNamespace

ルール マネージャーが関連付けられている完全修飾 Service Bus 名前空間。 これは、 と似ている {yournamespace}.servicebus.windows.net可能性があります。

IsClosed

これが ServiceBusRuleManager 閉じられているかどうかを示します。

SubscriptionPath

ルール マネージャーが接続されている Service Bus サブスクリプションのパス。ルール マネージャーを含む Service Bus 名前空間に固有です。

メソッド

CloseAsync(CancellationToken)

によって使用されるリソースをクリーンするために必要なタスクを実行しますServiceBusRuleManager

CreateRuleAsync(CreateRuleOptions, CancellationToken)

現在のサブスクリプションにルールを追加して、トピックからサブスクリプションに到達するメッセージをフィルター処理します。

CreateRuleAsync(String, RuleFilter, CancellationToken)

現在のサブスクリプションにルールを追加して、トピックからサブスクリプションに到達するメッセージをフィルター処理します。

DeleteRuleAsync(String, CancellationToken)

によって識別されるサブスクリプションのルールを ruleName削除します。

DisposeAsync()

によって使用されるリソースをクリーンするために必要なタスクを実行しますServiceBusRuleManager。 これは、 を呼び出すこと CloseAsync(CancellationToken)と同じです。

GetRulesAsync(CancellationToken)

サブスクリプションに関連付けられているルールを反復処理します。

適用対象