EventHubConnection クラス

定義

Azure Event Hubs サービスへの接続。Event Hubs 名前空間内の特定の Event Hub インスタンスとのクライアント通信を有効にします。 1 つの接続は、複数の Event Hub プロデューサーまたはコンシューマー間で共有することも、単一のプロデューサーまたはコンシューマー クライアントの専用接続として使用することもできます。

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

コンストラクター

EventHubConnection()

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, EventHubConnectionOptions)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, String)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, String, AzureNamedKeyCredential, EventHubConnectionOptions)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, String, AzureSasCredential, EventHubConnectionOptions)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, String, EventHubConnectionOptions)

EventHubConnection クラスの新しいインスタンスを初期化します。

EventHubConnection(String, String, TokenCredential, EventHubConnectionOptions)

EventHubConnection クラスの新しいインスタンスを初期化します。

プロパティ

EventHubName

接続が関連付けられているイベント ハブの名前。接続を含む Event Hubs 名前空間に固有です。

FullyQualifiedNamespace

接続が関連付けられている完全修飾 Event Hubs 名前空間。 これは、 と似ている {yournamespace}.servicebus.windows.net可能性があります。

IsClosed

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

メソッド

CloseAsync(CancellationToken)

Event Hubs 名前空間と関連する Event Hub への接続を閉じます。

DisposeAsync()

によって使用されるリソースをクリーンするために必要なタスクをEventHubConnection実行します。これには、接続自体が閉じられました。

適用対象