ある会社が、Azure Service Busを使用してパブリッシュ/サブスクライブ(Pub / Sub)メッセージングコンポーネントを実装しています。最初のサブスクリプションアプリケーションを開発しています。 Azureポータルでは、トピックごとにメッセージがサブスクリプションに送信されていることがわかります。正しい詳細を指定してサブスクリプションクライアントオブジェクトを作成および初期化しますが、サブスクリプションアプリケーションはまだメッセージを消費していません。 サブスクリプションクライアントがすべてのメッセージを処理することを確認する必要があります。 どのコードセグメントを使用する必要がありますか?
正解:D
Explanation Using topic client, call RegisterMessageHandler which is used to receive messages continuously from the entity. It registers a message handler and begins a new thread to receive messages. This handler is waited on every time a new message is received by the receiver. subscriptionClient.RegisterMessageHandler(ReceiveMessagesAsync, messageHandlerOptions); Reference: https://www.c-sharpcorner.com/article/azure-service-bus-topic-and-subscription-pub-sub/